We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff4df04 commit e07f63eCopy full SHA for e07f63e
src/test/ui/async-await/issue-70818.rs
@@ -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