aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro15.rs
blob: 02c739e415e93ea5bee04421b9c9850252259b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-additional-options "-w" }
macro_rules! create_type {
    ($s:ident) => {
        struct $s;
    };
}

create_type!(SomeOuterType);

fn main() {
    let a = SomeOuterType;
}