rust/tests/ui/kindck/kindck-send-owned.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
721 B
Plaintext
Raw Normal View History

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
|
= help: the trait `Send` is not implemented for `*mut u8`
= note: required for `Unique<*mut u8>` to implement `Send`
= note: required because it appears within the type `Box<*mut u8>`
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`.