2017-07-23 12:50:56 -05:00
|
|
|
macro_rules! m {
|
|
|
|
($p1: path) => {
|
|
|
|
#[derive($p1)] struct U;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-16 11:23:27 -06:00
|
|
|
macro_rules! foo { () => () }
|
|
|
|
|
2017-07-23 12:50:56 -05:00
|
|
|
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
|
2018-12-16 11:23:27 -06:00
|
|
|
m!(Default<>); //~ ERROR generic arguments in macro path
|
2017-07-23 12:50:56 -05:00
|
|
|
}
|