fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `Cell<i32>` cannot be shared between threads safely 2 --> $DIR/mutexguard-sync.rs:11:15 3 | 4LL | test_sync(guard); 5 | --------- ^^^^^ `Cell<i32>` cannot be shared between threads safely 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Sync` is not implemented for `Cell<i32>` 10 = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` or `std::sync::atomic::AtomicI32` instead 11 = note: required for `MutexGuard<'_, Cell<i32>>` to implement `Sync` 12note: required by a bound in `test_sync` 13 --> $DIR/mutexguard-sync.rs:5:17 14 | 15LL | fn test_sync<T: Sync>(_t: T) {} 16 | ^^^^ required by this bound in `test_sync` 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0277`.