2018-08-13 17:28:18 -05:00
|
|
|
struct S;
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
fn f() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! impl_add {
|
|
|
|
($($n:ident)*) => {
|
|
|
|
$(
|
|
|
|
fn $n() {
|
|
|
|
S::f::<i64>();
|
2018-08-19 18:08:01 -05:00
|
|
|
//~^ ERROR wrong number of type arguments
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR wrong number of type arguments
|
2018-08-13 17:28:18 -05:00
|
|
|
}
|
|
|
|
)*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl_add!(a b);
|
2018-08-19 18:08:01 -05:00
|
|
|
|
|
|
|
fn main() {}
|