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