1 2 3 4 5 6 7 8 9 10
// check-pass fn is_send<T: Send>(_: T) {} fn foo() -> impl Send { if false { is_send(foo()); } () } fn main() {}