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.

16 lines
224 B
Rust
Raw Normal View History

// 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() {}