diff options
Diffstat (limited to 'tests/ui/macros/recovery-allowed.rs')
-rw-r--r-- | tests/ui/macros/recovery-allowed.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/macros/recovery-allowed.rs b/tests/ui/macros/recovery-allowed.rs new file mode 100644 index 000000000..ebf65f1cc --- /dev/null +++ b/tests/ui/macros/recovery-allowed.rs @@ -0,0 +1,8 @@ +macro_rules! please_recover { + ($a:expr) => {}; +} + +please_recover! { not 1 } +//~^ ERROR unexpected `1` after identifier + +fn main() {} |