blob: 5a81df3a4e4d96fb74946f863e0163718543c112 [file] [log] [blame]
//@ 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() {}