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