diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-6596-2.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-6596-2.rs b/src/test/ui/issues/issue-6596-2.rs new file mode 100644 index 000000000..8401c4a9d --- /dev/null +++ b/src/test/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); +} |