blob: 5a81df3a4e4d96fb74946f863e0163718543c112 (
plain)
1
2
3
4
5
6
7
8
|
//@ edition:2015
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` trait bounds are unstable
//~| ERROR `async` trait bounds are unstable
fn main() {}
|