rust/tests/ui/parser/bad-recover-kw-after-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
375 B
Rust
Raw Normal View History

2024-02-20 10:09:03 -06:00
// 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);
2024-02-20 10:09:03 -06:00
//~^ ERROR expected identifier, found `<eof>`
//~| ERROR async closures are unstable
fn main() {}