2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `Rc<u32>` cannot be sent between threads safely
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/cross-crate.rs:14:17
|
2019-01-10 15:56:05 -06:00
|
|
|
|
|
|
|
|
LL | use_alias::<Rc<u32>>();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ `Rc<u32>` cannot be sent between threads safely
|
2019-01-10 15:56:05 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Send` is not implemented for `Rc<u32>`
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `Rc<u32>` to implement `SendSync`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `use_alias`
|
|
|
|
--> $DIR/cross-crate.rs:10:17
|
|
|
|
|
|
|
|
|
LL | fn use_alias<T: SendSync>() {}
|
|
|
|
| ^^^^^^^^ required by this bound in `use_alias`
|
2019-01-10 15:56:05 -06:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: `Rc<u32>` cannot be shared between threads safely
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/cross-crate.rs:14:17
|
2019-01-10 15:56:05 -06:00
|
|
|
|
|
|
|
|
LL | use_alias::<Rc<u32>>();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^^ `Rc<u32>` cannot be shared between threads safely
|
2019-01-10 15:56:05 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sync` is not implemented for `Rc<u32>`
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `Rc<u32>` to implement `SendSync`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `use_alias`
|
|
|
|
--> $DIR/cross-crate.rs:10:17
|
|
|
|
|
|
|
|
|
LL | fn use_alias<T: SendSync>() {}
|
|
|
|
| ^^^^^^^^ required by this bound in `use_alias`
|
2019-01-10 15:56:05 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|