2018-08-13 15:28:18 -07:00
|
|
|
struct S;
|
|
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
|
fn f() {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro_rules! impl_add {
|
|
|
|
|
($($n:ident)*) => {
|
|
|
|
|
$(
|
|
|
|
|
fn $n() {
|
|
|
|
|
S::f::<i64>();
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR associated function takes 0 generic
|
|
|
|
|
//~| ERROR associated function takes 0 generic
|
2018-08-13 15:28:18 -07:00
|
|
|
}
|
|
|
|
|
)*
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl_add!(a b);
|
2018-08-20 00:08:01 +01:00
|
|
|
|
2021-01-02 19:45:11 +01:00
|
|
|
fn main() { }
|