rust/tests/ui/span/macro-ty-params.rs
2023-01-11 09:32:08 +00:00

16 lines
361 B
Rust

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
}