about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/trait-bounds-in-macro.rs
blob: 654883966f403ea663eb2d3388e7c7e0d7d354d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ edition: 2021

macro_rules! x {
    ($x:item) => {}
}

x! {
    async fn foo() -> impl async Fn() { }
    //~^ ERROR `async` trait bounds are unstable
}

fn main() {}