aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro41.rs
blob: 3824422292477648e738e209f0be7ed9a4004666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! empty {
    ($($t:tt)*) => {};
}

empty! {nothing}
empty! {struct OuterItem;}
empty! {}

fn main() {
    empty! {as statement};
    empty! {any child item};
    empty! {};
}