]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/macro-ty-params.rs
f36574e2b3d3d0ecfff7e89826e403aa4466581d
[rust.git] / src / test / ui / span / macro-ty-params.rs
1 macro_rules! m {
2     ($p1: path) => {
3         #[derive($p1)] struct U;
4     }
5 }
6
7 fn main() {
8     foo::<T>!(); //~ ERROR generic arguments in macro path
9     foo::<>!(); //~ ERROR generic arguments in macro path
10     m!(MyTrait<>); //~ ERROR generic arguments in macro path
11     //~^ ERROR unexpected generic arguments in path
12 }