2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: `*mut u8` cannot be sent between threads safely
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/kindck-send-owned.rs:12:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | assert_send::<Box<*mut u8>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut u8` cannot be sent between threads safely
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `*mut u8`
|
|
|
|
= note: required because of the requirements on the impl of `Send` for `Unique<*mut u8>`
|
|
|
|
= note: required because it appears within the type `Box<*mut u8>`
|
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`.
|