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

22 lines
329 B
Rust
Raw Normal View History

struct S;
impl S {
fn f() {}
}
macro_rules! impl_add {
($($n:ident)*) => {
$(
fn $n() {
S::f::<i64>();
2018-08-19 18:08:01 -05:00
//~^ ERROR wrong number of type arguments
2020-01-08 11:02:10 -06:00
//~| ERROR wrong number of type arguments
}
)*
}
}
impl_add!(a b);
2018-08-19 18:08:01 -05:00
fn main() {}