mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
375 B
Rust
18 lines
375 B
Rust
// 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 closures are unstable
|
|
|
|
fn main() {}
|