rust/tests/ui/issues/issue-26094.rs
2023-02-14 20:22:10 +00:00

14 lines
339 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
//~| NOTE in this expansion of some_macro!
}