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