rust/tests/ui/issues/issue-53251.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
350 B
Rust
Raw Normal View History

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
}
)*
}
}
impl_add!(a b);
2018-08-19 18:08:01 -05:00
fn main() { }