]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/macro-ty-params.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[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 macro_rules! foo { () => () }
8
9 fn main() {
10     foo::<T>!(); //~ ERROR generic arguments in macro path
11     foo::<>!(); //~ ERROR generic arguments in macro path
12     m!(Default<>);
13     //~^ ERROR unexpected generic arguments in path
14     //~^^ ERROR generic arguments in macro path
15 }