//@ check-pass //@ compile-flags: --crate-type lib //@ edition:2018 fn assert_send(_: F) {} async fn __post() -> T { if false { todo!() } else { async {}.await; todo!() } } fn foo() { assert_send(__post::()); }