1 error: future cannot be sent between threads safely
2 --> $DIR/issue-65436-raw-ptr-not-send.rs:12:5
4 LL | fn assert_send<T: Send>(_: T) {}
5 | ---- required by this bound in `assert_send`
7 LL | assert_send(async {
8 | ^^^^^^^^^^^ future created by async block is not `Send`
10 = help: within `impl Future`, the trait `Send` is not implemented for `*const u8`
11 note: future is not `Send` as this value is used across an await
12 --> $DIR/issue-65436-raw-ptr-not-send.rs:14:9
14 LL | bar(Foo(std::ptr::null())).await;
15 | ^^^^^^^^----------------^^^^^^^^- `std::ptr::null()` is later dropped here
17 | | has type `*const u8` which is not `Send`
18 | await occurs here, with `std::ptr::null()` maybe used later
19 help: consider moving this into a `let` binding to create a shorter lived borrow
20 --> $DIR/issue-65436-raw-ptr-not-send.rs:14:13
22 LL | bar(Foo(std::ptr::null())).await;
23 | ^^^^^^^^^^^^^^^^^^^^^
25 error: aborting due to previous error