blob: bc181de8d925d74db689a962ae2237e38983d5fb [file] [log] [blame] [edit]
//@ edition:2018
use std::future::Future;
fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
//~^ ERROR future cannot be sent between threads safely
async { (ty, ty1) }
}
fn main() {}