summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/none-delim-lookahead.rs
blob: bf4fddea14ba25c0e07693001c08fb8baf2cdeb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

macro_rules! make_struct {
    ($name:ident) => {
        #[derive(Debug)]
        struct Foo {
            #[cfg(not(FALSE))]
            field: fn($name: bool)
        }
    }
}

make_struct!(param_name);

fn main() {}