]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/macro-ty-params.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / span / macro-ty-params.rs
CommitLineData
3b2f2976
XL
1macro_rules! m {
2 ($p1: path) => {
3 #[derive($p1)] struct U;
4 }
5}
041b39d2 6
0731742a
XL
7macro_rules! foo { () => () }
8
3b2f2976 9fn 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}