]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/issue-70818.stderr
Rollup merge of #103766 - lukas-code:error-in-core, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issue-70818.stderr
index cb50c70f99847a3984bf09b5ec42072ddc7eeb41..20109d4d1166a0e3331d4289ef60d2628ae1b1d9 100644 (file)
@@ -1,11 +1,11 @@
 error: future cannot be sent between threads safely
-  --> $DIR/issue-70818.rs:5:5
+  --> $DIR/issue-70818.rs:4:38
    |
-LL |     async { (ty, ty1) }
-   |     ^^^^^ future created by async block is not `Send`
+LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
+   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
    |
 note: captured value is not `Send`
-  --> $DIR/issue-70818.rs:5:18
+  --> $DIR/issue-70818.rs:6:18
    |
 LL |     async { (ty, ty1) }
    |                  ^^^ has type `U` which is not `Send`