rust/src/test/ui/issues/issue-53251.rs
2021-05-11 14:09:46 +02:00

21 lines
350 B
Rust

struct S;
impl S {
fn f() {}
}
macro_rules! impl_add {
($($n:ident)*) => {
$(
fn $n() {
S::f::<i64>();
//~^ ERROR this associated function takes 0 generic
//~| ERROR this associated function takes 0 generic
}
)*
}
}
impl_add!(a b);
fn main() { }