]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53251.rs
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
[rust.git] / src / test / 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() { }