2017-07-23 12:50:56 -05:00
|
|
|
macro_rules! m {
|
|
|
|
($p1: path) => {
|
|
|
|
#[derive($p1)] struct U;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2017-11-20 06:13:27 -06:00
|
|
|
foo::<T>!(); //~ ERROR generic arguments in macro path
|
|
|
|
foo::<>!(); //~ ERROR generic arguments in macro path
|
|
|
|
m!(MyTrait<>); //~ ERROR generic arguments in macro path
|
|
|
|
//~^ ERROR unexpected generic arguments in path
|
2017-07-23 12:50:56 -05:00
|
|
|
}
|