]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-70818.rs
record upvar into GeneratorInteriorTypeCause
[rust.git] / src / test / ui / async-await / issue-70818.rs
1 // edition 2018
2
3 fn foo<T: Sized>(ty: T) -> impl std::future::Future<Output = T> + Send { //~ Error `T` cannot be sent between threads safely
4     async { ty }
5 }
6
7 fn main() {}