2017-07-23 20:50:56 +03:00
|
|
|
macro_rules! m {
|
|
|
|
($p1: path) => {
|
|
|
|
#[derive($p1)] struct U;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-16 20:23:27 +03:00
|
|
|
macro_rules! foo { () => () }
|
|
|
|
|
2017-07-23 20:50:56 +03:00
|
|
|
fn main() {
|
2017-11-20 13:13:27 +01:00
|
|
|
foo::<T>!(); //~ ERROR generic arguments in macro path
|
|
|
|
foo::<>!(); //~ ERROR generic arguments in macro path
|
2022-11-28 11:17:45 +11:00
|
|
|
m!(Default<>);
|
|
|
|
//~^ ERROR unexpected generic arguments in path
|
|
|
|
//~^^ ERROR generic arguments in macro path
|
2017-07-23 20:50:56 +03:00
|
|
|
}
|