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>();
|
2021-02-18 14:01:44 -06:00
|
|
|
//~^ ERROR this associated function takes 0 generic
|
|
|
|
//~| ERROR this associated function takes 0 generic
|
2018-08-13 17:28:18 -05:00
|
|
|
}
|
|
|
|
)*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl_add!(a b);
|
2018-08-19 18:08:01 -05:00
|
|
|
|
2021-01-02 12:45:11 -06:00
|
|
|
fn main() { }
|