]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26094.rs
On mismatched argument count point at arguments
[rust.git] / src / test / ui / issues / issue-26094.rs
1 macro_rules! some_macro {
2     ($other: expr) => ({
3         $other(None) //~ NOTE supplied 1 argument
4     })
5 }
6
7 fn some_function() {} //~ NOTE defined here
8
9 fn main() {
10     some_macro!(some_function);
11     //~^ ERROR this function takes 0 arguments but 1 argument was supplied
12     //~| NOTE expected 0 arguments
13 }