2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
|
2025-06-29 23:13:37 +05:00
|
|
|
--> $DIR/rc-not-send.rs:9:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | requires_send(rc_value);
|
|
|
|
|
| ------------- ^^^^^^^^ `Rc<{integer}>` cannot be sent between threads safely
|
2021-09-07 11:30:53 +00:00
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= help: the trait `Send` is not implemented for `Rc<{integer}>`
|
2025-06-29 23:13:37 +05:00
|
|
|
note: required by a bound in `requires_send`
|
|
|
|
|
--> $DIR/rc-not-send.rs:5:21
|
2021-07-31 09:26:55 -07:00
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | fn requires_send<T: Send>(_: T) {}
|
|
|
|
|
| ^^^^ required by this bound in `requires_send`
|
2024-11-21 03:23:56 -08:00
|
|
|
help: consider dereferencing here
|
|
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | requires_send(*rc_value);
|
|
|
|
|
| +
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|