fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: future cannot be sent between threads safely 2 --> $DIR/issue-67252-unnamed-future.rs:18:5 3 | 4LL | fn spawn<T: Send>(_: T) {} 5 | ----- ---- required by this bound in `spawn` 6... 7LL | spawn(async { 8 | ^^^^^ future is not `Send` 9 | 10 = help: within `impl std::future::Future`, the trait `std::marker::Send` is not implemented for `*mut ()` 11note: future is not `Send` as this value is used across an await 12 --> $DIR/issue-67252-unnamed-future.rs:20:9 13 | 14LL | let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send` 15 | -- has type `*mut ()` 16LL | AFuture.await; 17 | ^^^^^^^^^^^^^ await occurs here, with `_a` maybe used later 18LL | }); 19 | - `_a` is later dropped here 20 21error: aborting due to previous error 22