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