blob: c11332fe7d8476ca0f7451ee745a06e066fe0a41 (
plain)
| 1
2
3
4
5
6
7
8
9
10
 | //@ 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) }
    //~^ ERROR future cannot be sent between threads safely
}
fn main() {}
 |