aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro13.rs
blob: eb8dfbbf3938600afb396f70b29a4276b7199f38 (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;
    };
}

fn main() {
    create_type!(A);

    let a = A;
}