]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/type-parameter-send.rs
Rollup merge of #106836 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / async-await / type-parameter-send.rs
1 // check-pass
2 // compile-flags: --crate-type lib
3 // edition:2018
4
5 fn assert_send<F: Send>(_: F) {}
6
7 async fn __post<T>() -> T {
8     if false {
9         todo!()
10     } else {
11         async {}.await;
12         todo!()
13     }
14 }
15
16 fn foo<T>() {
17     assert_send(__post::<T>());
18 }