diff options
Diffstat (limited to 'tests/ui/issues/issue-6596-2.rs')
-rw-r--r-- | tests/ui/issues/issue-6596-2.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-6596-2.rs b/tests/ui/issues/issue-6596-2.rs new file mode 100644 index 000000000..8401c4a9d --- /dev/null +++ b/tests/ui/issues/issue-6596-2.rs @@ -0,0 +1,11 @@ +macro_rules! g { + ($inp:ident) => ( + { $inp $nonexistent } + //~^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `$` + ); +} + +fn main() { + let foo = 0; + g!(foo); +} |