2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: `Rc<{integer}>` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/no_send-rc.rs:7:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn bar<T: Send>(_: T) {}
|
2020-04-05 22:15:06 -07:00
|
|
|
| ---- required by this bound in `bar`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | bar(x);
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^ `Rc<{integer}>` cannot be sent between threads safely
|
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}>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|