add testcase for issue-70818

This commit is contained in:
csmoe 2020-04-30 12:15:59 +08:00
parent ff4df04799
commit e07f63e79a

View 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 }
}