diff options
Diffstat (limited to 'tests/ui/issues/issue-53251.rs')
-rw-r--r-- | tests/ui/issues/issue-53251.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-53251.rs b/tests/ui/issues/issue-53251.rs new file mode 100644 index 000000000..240826a16 --- /dev/null +++ b/tests/ui/issues/issue-53251.rs @@ -0,0 +1,21 @@ +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() { } |