summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/auxiliary/local_inner_macros.rs
blob: 4296ae2fddfba53eae72f56179a8add669f50875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[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!(); )
}