summary refs log tree commit diff
path: root/src/test/ui/issues/issue-26094.rs
blob: 78fb0491d82ddd6a548d50f4fc9d66134814a1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! some_macro {
    ($other: expr) => ({
        $other(None) //~ NOTE supplied 1 argument
    })
}

fn some_function() {} //~ NOTE defined here

fn main() {
    some_macro!(some_function);
    //~^ ERROR this function takes 0 arguments but 1 argument was supplied
    //~| NOTE expected 0 arguments
}