]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/issue-67252-unnamed-future.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-67252-unnamed-future.stderr
index 01c0d3225ba0bb260c3a7397ec33ed56ad561727..af99b608ca14d0f4388d25de27db4fab08f6c27f 100644 (file)
@@ -1,8 +1,12 @@
 error: future cannot be sent between threads safely
-  --> $DIR/issue-67252-unnamed-future.rs:18:5
+  --> $DIR/issue-67252-unnamed-future.rs:18:11
    |
-LL |     spawn(async {
-   |     ^^^^^ future created by async block is not `Send`
+LL |       spawn(async {
+   |  ___________^
+LL | |         let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`
+LL | |         AFuture.await;
+LL | |     });
+   | |_____^ future created by async block is not `Send`
    |
    = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `*mut ()`
 note: future is not `Send` as this value is used across an await