]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-26094.rs
Rollup merge of #106752 - sulami:master, r=estebank
[rust.git] / tests / ui / issues / issue-26094.rs
1 macro_rules! some_macro {
2     ($other: expr) => ({
3         $other(None) //~ NOTE argument of type `Option<_>` unexpected
4     })
5 }
6
7 fn some_function() {} //~ NOTE defined here
8
9 fn main() {
10     some_macro!(some_function);
11     //~^ ERROR function takes 0 arguments but 1 argument was supplied
12     //~| NOTE in this expansion of some_macro!
13 }