rust/tests/ui/hygiene/auxiliary/local_inner_macros.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
361 B
Rust
Raw Normal View History

#[macro_export]
macro_rules! helper1 {
() => ( struct S; )
}
#[macro_export(local_inner_macros)]
macro_rules! helper2 {
() => ( helper1!(); )
}
#[macro_export(local_inner_macros)]
macro_rules! public_macro {
() => ( helper2!(); )
}
#[macro_export(local_inner_macros)]
macro_rules! public_macro_dynamic {
($helper: ident) => ( $helper!(); )
}