Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
pub-method-inside-macro.rs
blob: 23d8c454d697374abe915d1edfcba538fc225d3a [
file
] [
edit
]
//@ check-pass
// Issue #17436
mod
bleh
{
macro_rules
!
foo
{
()
=>
{
pub
fn
bar
(&
self
)
{
}
}
}
pub
struct
S
;
impl
S
{
foo
!();
}
}
fn
main
()
{
bleh
::
S
.
bar
();
}