2017-10-09 20:02:17 +03:00
|
|
|
macro_rules! foo {
|
|
|
|
($rest: tt) => {
|
2021-09-07 17:45:16 +00:00
|
|
|
bar(baz: $rest) //~ ERROR invalid `struct` delimiters or `fn` call arguments
|
2017-10-09 20:02:17 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2021-09-07 17:45:16 +00:00
|
|
|
foo!(true);
|
2017-11-20 13:13:27 +01:00
|
|
|
//~^ ERROR expected identifier, found keyword
|
2017-10-09 20:02:17 +03:00
|
|
|
}
|