2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: `*mut u8` cannot be sent between threads safely
|
2022-08-16 06:27:22 +00:00
|
|
|
--> $DIR/kindck-send-owned.rs:12:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | assert_send::<Box<*mut u8>>();
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^^^^^^^^^^^^ `*mut u8` cannot be sent between threads safely
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `*mut u8`
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `Unique<*mut u8>` to implement `Send`
|
2023-05-03 16:27:29 +00:00
|
|
|
note: required because it appears within the type `Box<*mut u8>`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `assert_send`
|
|
|
|
--> $DIR/kindck-send-owned.rs:3:18
|
|
|
|
|
|
|
|
|
LL | fn assert_send<T:Send>() { }
|
|
|
|
| ^^^^ required by this bound in `assert_send`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|