]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/issue-70818.rs
Update upstream source from tag 'upstream/1.45.0+dfsg1'
[rustc.git] / src / test / ui / async-await / issue-70818.rs
1 // edition:2018
2
3 use std::future::Future;
4 fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
5 //~^ Error future cannot be sent between threads safely
6 async { (ty, ty1) }
7 }
8
9 fn main() {}