1 error[E0277]: `Cell<i32>` cannot be shared between threads safely
2 --> $DIR/mutexguard-sync.rs:11:15
5 | --------- ^^^^^ `Cell<i32>` cannot be shared between threads safely
7 | required by a bound introduced by this call
9 = help: the trait `Sync` is not implemented for `Cell<i32>`
10 = note: required for `MutexGuard<'_, Cell<i32>>` to implement `Sync`
11 note: required by a bound in `test_sync`
12 --> $DIR/mutexguard-sync.rs:5:17
14 LL | fn test_sync<T: Sync>(_t: T) {}
15 | ^^^^ required by this bound in `test_sync`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.