2023-05-09 12:17:04 -05:00
|
|
|
error[E0277]: `*mut isize` cannot be sent between threads safely
|
2019-09-20 13:58:20 -05:00
|
|
|
--> $DIR/kindck-send-unsafe.rs:6:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2023-05-09 12:17:04 -05:00
|
|
|
LL | assert_send::<*mut isize>();
|
|
|
|
| ^^^^^^^^^^ `*mut isize` cannot be sent between threads safely
|
|
|
|
|
|
|
|
|
= help: the trait `Send` is not implemented for `*mut isize`
|
|
|
|
note: required by a bound in `assert_send`
|
|
|
|
--> $DIR/kindck-send-unsafe.rs:3:19
|
|
|
|
|
|
|
|
|
LL | fn assert_send<T: Send>() {}
|
|
|
|
| ^^^^ required by this bound in `assert_send`
|
|
|
|
|
|
|
|
error[E0277]: `*mut &'a isize` cannot be sent between threads safely
|
|
|
|
--> $DIR/kindck-send-unsafe.rs:11:19
|
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | assert_send::<*mut &'a isize>();
|
2019-09-20 13:58:20 -05:00
|
|
|
| ^^^^^^^^^^^^^^ `*mut &'a isize` cannot be sent between threads safely
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Send` is not implemented for `*mut &'a isize`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `assert_send`
|
2023-05-09 12:17:04 -05:00
|
|
|
--> $DIR/kindck-send-unsafe.rs:3:19
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
2023-05-09 12:17:04 -05:00
|
|
|
LL | fn assert_send<T: Send>() {}
|
|
|
|
| ^^^^ required by this bound in `assert_send`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-05-09 12:17:04 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|