summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26094.rs
blob: 2742529edd3b317b9fd8a11ac44c64ba9f8f100d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}