mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
13 lines
293 B
Rust
13 lines
293 B
Rust
macro_rules! some_macro {
|
|
($other: expr) => {{
|
|
$other(None) //~ NOTE unexpected argument of type `Option<_>`
|
|
}};
|
|
}
|
|
|
|
fn some_function() {} //~ NOTE defined here
|
|
|
|
fn main() {
|
|
some_macro!(some_function);
|
|
//~^ ERROR function takes 0 arguments but 1 argument was supplied
|
|
}
|