Files
rust/src/test/ui/issues/issue-53251.rs

22 lines
430 B
Rust
Raw Normal View History

struct S;
impl S {
fn f() {}
}
macro_rules! impl_add {
($($n:ident)*) => {
$(
fn $n() {
S::f::<i64>();
//~^ ERROR this associated function takes 0 type arguments but 1 type argument was supplied
//~| ERROR this associated function takes 0 type arguments but 1 type argument was supplied
}
)*
}
}
impl_add!(a b);
2018-08-20 00:08:01 +01:00
fn main() { }