rust/tests/ui/async-await/async-fn/trait-bounds-in-macro.rs
2024-02-20 16:09:09 +00:00

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