about summary refs log tree commit diff
path: root/tests/ui/async-await/issue-70818.rs
blob: bc181de8d925d74db689a962ae2237e38983d5fb (plain)
1
2
3
4
5
6
7
8
9
//@ 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() {}