Files
rust/tests/ui/traits/rc-not-send.stderr

23 lines
762 B
Plaintext
Raw Normal View History

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
| |
| required by a bound introduced by this call
2018-08-08 14:28:26 +02: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
|
2025-06-29 23:13:37 +05:00
LL | fn requires_send<T: Send>(_: T) {}
| ^^^^ required by this bound in `requires_send`
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
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`.