summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/macro-ty-params.rs
blob: cf28b0255d17db4c611ea55cf461be1a51fbc1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! m {
    ($p1: path) => {
        #[derive($p1)] struct U;
    }
}

macro_rules! foo { () => () }

fn main() {
    foo::<T>!(); //~ ERROR generic arguments in macro path
    foo::<>!(); //~ ERROR generic arguments in macro path
    m!(Default<>);
    //~^ ERROR unexpected generic arguments in path
    //~^^ ERROR generic arguments in macro path
}