]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/bad-recover-kw-after-impl.rs
Do not eagerly recover for bad impl-trait in macros
[rust.git] / tests / ui / parser / bad-recover-kw-after-impl.rs
1 // check-pass
2
3 // edition:2021
4 // for the `impl` + keyword test
5
6 macro_rules! impl_primitive {
7     ($ty:ty) => {
8         compile_error!("whoops");
9     };
10     (impl async) => {};
11 }
12
13 impl_primitive!(impl async);
14
15 fn main() {}