]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/in-trait/missing-send-bound.rs
2 // [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
3 // revisions: current next
5 #![feature(async_fn_in_trait)]
6 //~^ WARN the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
12 async
fn test
<T
: Foo
>() {
17 assert_is_send(test
::<T
>());
18 //~^ ERROR future cannot be sent between threads safely
21 fn assert_is_send(_
: impl Send
) {}