]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/issue-71137.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / async-await / issue-71137.stderr
index 85cc7069b604d0cd3ff34d7d512fa32d9715bb7c..8903c09c17f0dbb186105e309e33bf87f5f39856 100644 (file)
@@ -1,9 +1,6 @@
 error: future cannot be sent between threads safely
   --> $DIR/issue-71137.rs:20:3
    |
-LL | fn fake_spawn<F: Future + Send + 'static>(f: F) { }
-   |                           ---- required by this bound in `fake_spawn`
-...
 LL |   fake_spawn(wrong_mutex());
    |   ^^^^^^^^^^ future returned by `wrong_mutex` is not `Send`
    |
@@ -18,6 +15,11 @@ LL |     (async { "right"; }).await;
 LL |     *guard += 1;
 LL |   }
    |   - `mut guard` is later dropped here
+note: required by a bound in `fake_spawn`
+  --> $DIR/issue-71137.rs:6:27
+   |
+LL | fn fake_spawn<F: Future + Send + 'static>(f: F) { }
+   |                           ^^^^ required by this bound in `fake_spawn`
 
 error: aborting due to previous error