mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
22 lines
350 B
Rust
22 lines
350 B
Rust
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() { }
|