diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-44406.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-44406.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-44406.rs b/tests/ui/parser/issues/issue-44406.rs new file mode 100644 index 000000000..a5b7e83a0 --- /dev/null +++ b/tests/ui/parser/issues/issue-44406.rs @@ -0,0 +1,10 @@ +macro_rules! foo { + ($rest: tt) => { + bar(baz: $rest) //~ ERROR invalid `struct` delimiters or `fn` call arguments + } +} + +fn main() { + foo!(true); + //~^ ERROR expected identifier, found keyword +} |