3 #![feature(async_fn_in_trait)]
4 //~^ WARN the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
10 async fn test<T: Foo>() {
15 assert_is_send(test::<T>());
16 //~^ ERROR future cannot be sent between threads safely
19 fn assert_is_send(_: impl Send) {}