summary refs log tree commit diff
path: root/src/test/ui/proc-macro/auxiliary/nested-macro-rules.rs
blob: 52ebe8e7fb2ef1d8906f00d0c2389853cd8f53ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub struct FirstStruct;

#[macro_export]
macro_rules! outer_macro {
    ($name:ident) => {
        #[macro_export]
        macro_rules! inner_macro {
            ($wrapper:ident) => {
                $wrapper!($name)
            }
        }
    }
}

outer_macro!(FirstStruct);