rust/tests/ui/macros/issue-26094.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
293 B
Rust
Raw Normal View History

macro_rules! some_macro {
($other: expr) => {{
2023-02-01 17:38:56 +00:00
$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
}