summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/edition-2015.rs
blob: 83b9d415ddab405329b5ad0d7b22d6fe96fac523 (plain)
1
2
3
4
5
6
7
fn foo(x: impl async Fn()) -> impl async Fn() { x }
//~^ ERROR `async` trait bounds are only allowed in Rust 2018 or later
//~| ERROR `async` trait bounds are only allowed in Rust 2018 or later
//~| ERROR async closures are unstable
//~| ERROR async closures are unstable

fn main() {}