diff options
Diffstat (limited to 'tests/ui/parser/bad-recover-kw-after-impl.rs')
-rw-r--r-- | tests/ui/parser/bad-recover-kw-after-impl.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/parser/bad-recover-kw-after-impl.rs b/tests/ui/parser/bad-recover-kw-after-impl.rs new file mode 100644 index 000000000..218cd7678 --- /dev/null +++ b/tests/ui/parser/bad-recover-kw-after-impl.rs @@ -0,0 +1,15 @@ +// check-pass + +// edition:2021 +// for the `impl` + keyword test + +macro_rules! impl_primitive { + ($ty:ty) => { + compile_error!("whoops"); + }; + (impl async) => {}; +} + +impl_primitive!(impl async); + +fn main() {} |