]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-70818.rs
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[rust.git] / tests / 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() {}