2025-05-26 14:47:19 +02:00
|
|
|
//@ edition:2015
|
2024-01-26 17:15:43 +00:00
|
|
|
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
|
2024-11-04 19:29:02 +00:00
|
|
|
//~| ERROR `async` trait bounds are unstable
|
|
|
|
|
//~| ERROR `async` trait bounds are unstable
|
2024-01-26 17:00:34 +00:00
|
|
|
|
|
|
|
|
fn main() {}
|