Skip to content

Commit e07f63e

Browse files
committed
add testcase for issue-70818
1 parent ff4df04 commit e07f63e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
}

0 commit comments

Comments
 (0)