rust/tests/ui/async-await/async-fn/trait-bounds-in-macro.rs

13 lines
165 B
Rust

//@ edition: 2021
macro_rules! x {
($x:item) => {}
}
x! {
async fn foo() -> impl async Fn() { }
//~^ ERROR async closures are unstable
}
fn main() {}