//@ edition:2018 use std::future::Future; fn foo(ty: T, ty1: U) -> impl Future + Send { //~^ ERROR future cannot be sent between threads safely async { (ty, ty1) } //~^ ERROR future cannot be sent between threads safely } fn main() {}