mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
313 B
Rust
15 lines
313 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
|
|
}
|