about summary refs log tree commit diff
path: root/tests/ui/macros/macro-expand-within-generics-in-path.rs
blob: 017d5152221bfc84164329357a138fd03227bf7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// issue#123911
// issue#123912

macro_rules! m {
    ($p: path) => {
        #[$p]
        struct S;
    };
}

macro_rules! p {
    () => {};
}

m!(generic<p!()>);
//~^ ERROR: unexpected generic arguments in path
//~| ERROR: cannot find attribute `generic` in this scope

fn main() {}