2016-01-21 15:14:09 -06:00
|
|
|
macro_rules! some_macro {
|
2023-02-19 08:24:24 -06:00
|
|
|
($other: expr) => {{
|
2023-02-01 11:38:56 -06:00
|
|
|
$other(None) //~ NOTE unexpected argument of type `Option<_>`
|
2023-02-19 08:24:24 -06:00
|
|
|
}};
|
2016-01-21 15:14:09 -06:00
|
|
|
}
|
|
|
|
|
2020-02-05 23:08:07 -06:00
|
|
|
fn some_function() {} //~ NOTE defined here
|
2016-01-21 15:14:09 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
some_macro!(some_function);
|
2023-01-04 21:02:10 -06:00
|
|
|
//~^ ERROR function takes 0 arguments but 1 argument was supplied
|
2016-01-21 15:14:09 -06:00
|
|
|
}
|