about summary refs log tree commit diff
path: root/tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs
blob: 188f5350256dae3899a0d89ab0105b0dbcf9e6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ edition:2015

#[macro_export]
macro_rules! generate_trait_2015_ident {
    ($Type: ident) => {
        trait Trait1 {
            fn method($Type) {}
        }
    };
}

#[macro_export]
macro_rules! generate_trait_2015_tt {
    ($Type: tt) => {
        trait Trait2 {
            fn method($Type) {}
        }
    };
}

fn main() {}