1 error: future cannot be sent between threads safely
2 --> $DIR/issue-67252-unnamed-future.rs:18:11
6 LL | | let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`
9 | |_____^ future created by async block is not `Send`
11 = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `*mut ()`
12 note: future is not `Send` as this value is used across an await
13 --> $DIR/issue-67252-unnamed-future.rs:20:16
15 LL | let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`
16 | -- has type `*mut ()` which is not `Send`
18 | ^^^^^^ await occurs here, with `_a` maybe used later
20 | - `_a` is later dropped here
21 note: required by a bound in `spawn`
22 --> $DIR/issue-67252-unnamed-future.rs:6:13
24 LL | fn spawn<T: Send>(_: T) {}
25 | ^^^^ required by this bound in `spawn`
27 error: aborting due to previous error