about summary refs log tree commit diff
path: root/tests/ui/parser/bad-recover-kw-after-impl.rs
blob: 964d32c55bc195b844e58ace8d8df2bd4b1d2b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is just `mbe-async-trait-bound-theoretical-regression.rs` in practice.

//@ edition:2021
// for the `impl` + keyword test

macro_rules! impl_primitive {
    ($ty:ty) => {
        compile_error!("whoops");
    };
    (impl async) => {};
}

impl_primitive!(impl async);
//~^ ERROR expected identifier, found `<eof>`
//~| ERROR `async` trait bounds are unstable

fn main() {}