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