blob: 981c3abb4bae0379ab83f451f423d7f18823b389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
macro_rules! some_macro {
($other: expr) => ({
$other(None) //~ NOTE argument unexpected
})
}
fn some_function() {} //~ NOTE defined here
fn main() {
some_macro!(some_function);
//~^ ERROR this function takes 0 arguments but 1 argument was supplied
//~| NOTE in this expansion of some_macro!
}
|