Skip to content

Problem with pub keyword in macros #18317

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

Hey,

I have an issue on my macros use. The source code of my macro is here. I can't put the pub keyword and if I call my macro like this :

pub impl_GObjectFunctions!(t1, t2)

The methods aren't public. Am I doing something wrong or is it a compiler's bug ?

Thanks in advance.

Metadata

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions