]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-70818.rs
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.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() {}