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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
165 B
Rust
Raw Normal View History

2024-02-20 10:09:03 -06:00
//@ edition: 2021
macro_rules! x {
($x:item) => {}
}
x! {
async fn foo() -> impl async Fn() { }
//~^ ERROR async closures are unstable
}
fn main() {}