2024-02-20 10:09:03 -06:00
|
|
|
// This is just `mbe-async-trait-bound-theoretical-regression.rs` in practice.
|
2023-02-08 11:56:04 -06:00
|
|
|
|
|
|
|
//@ 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
|
2023-02-08 11:56:04 -06:00
|
|
|
|
|
|
|
fn main() {}
|