]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-53251.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-53251.rs
1 struct S;
2
3 impl S {
4 fn f() {}
5 }
6
7 macro_rules! impl_add {
8 ($($n:ident)*) => {
9 $(
10 fn $n() {
11 S::f::<i64>();
12 //~^ ERROR this associated function takes 0 generic
13 //~| ERROR this associated function takes 0 generic
14 }
15 )*
16 }
17 }
18
19 impl_add!(a b);
20
21 fn main() { }