add testcase for issue-70818
This commit is contained in:
parent
ff4df04799
commit
e07f63e79a
1 changed files with 5 additions and 0 deletions
5
src/test/ui/async-await/issue-70818.rs
Normal file
5
src/test/ui/async-await/issue-70818.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// edition 2018
|
||||
|
||||
fn d<T: Sized>(t: T) -> impl std::future::Future<Output = T> + Send { //~ Error `T` cannot be sent between threads safely
|
||||
async { t }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue