diff options
Diffstat (limited to 'tests/ui/macros/issue-6596-1.rs')
-rw-r--r-- | tests/ui/macros/issue-6596-1.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-6596-1.rs b/tests/ui/macros/issue-6596-1.rs new file mode 100644 index 000000000..25f1d6500 --- /dev/null +++ b/tests/ui/macros/issue-6596-1.rs @@ -0,0 +1,10 @@ +macro_rules! e { + ($inp:ident) => ( + $nonexistent + //~^ ERROR expected expression, found `$` + ); +} + +fn main() { + e!(foo); +} |