fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `Rc<u32>` cannot be sent between threads safely 2 --> $DIR/cross-crate.rs:14:17 3 | 4LL | use_alias::<Rc<u32>>(); 5 | ^^^^^^^ `Rc<u32>` cannot be sent between threads safely 6 | 7 = help: the trait `Send` is not implemented for `Rc<u32>` 8 = note: required for `Rc<u32>` to implement `SendSync` 9note: required by a bound in `use_alias` 10 --> $DIR/cross-crate.rs:10:17 11 | 12LL | fn use_alias<T: SendSync>() {} 13 | ^^^^^^^^ required by this bound in `use_alias` 14 15error[E0277]: `Rc<u32>` cannot be shared between threads safely 16 --> $DIR/cross-crate.rs:14:17 17 | 18LL | use_alias::<Rc<u32>>(); 19 | ^^^^^^^ `Rc<u32>` cannot be shared between threads safely 20 | 21 = help: the trait `Sync` is not implemented for `Rc<u32>` 22 = note: required for `Rc<u32>` to implement `SendSync` 23note: required by a bound in `use_alias` 24 --> $DIR/cross-crate.rs:10:17 25 | 26LL | fn use_alias<T: SendSync>() {} 27 | ^^^^^^^^ required by this bound in `use_alias` 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0277`.