]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/auxiliary/local_inner_macros.rs
Auto merge of #86335 - CDirkx:ipv4-in-ipv6, r=dtolnay
[rust.git] / src / test / ui / hygiene / auxiliary / local_inner_macros.rs
1 #[macro_export]
2 macro_rules! helper1 {
3     () => ( struct S; )
4 }
5
6 #[macro_export(local_inner_macros)]
7 macro_rules! helper2 {
8     () => ( helper1!(); )
9 }
10
11 #[macro_export(local_inner_macros)]
12 macro_rules! public_macro {
13     () => ( helper2!(); )
14 }
15
16 #[macro_export(local_inner_macros)]
17 macro_rules! public_macro_dynamic {
18     ($helper: ident) => ( $helper!(); )
19 }