]>
Commit | Line | Data |
---|---|---|
3b2f2976 XL |
1 | macro_rules! m { |
2 | ($p1: path) => { | |
3 | #[derive($p1)] struct U; | |
4 | } | |
5 | } | |
041b39d2 | 6 | |
0731742a XL |
7 | macro_rules! foo { () => () } |
8 | ||
3b2f2976 | 9 | fn main() { |
ff7c6d11 XL |
10 | foo::<T>!(); //~ ERROR generic arguments in macro path |
11 | foo::<>!(); //~ ERROR generic arguments in macro path | |
0731742a | 12 | m!(Default<>); //~ ERROR generic arguments in macro path |
223e47cc | 13 | } |