]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: `Cell<i32>` cannot be shared between threads safely |
e1599b0c | 2 | --> $DIR/mutexguard-sync.rs:11:15 |
b7449926 XL |
3 | | |
4 | LL | test_sync(guard); | |
c295e0f8 XL |
5 | | --------- ^^^^^ `Cell<i32>` cannot be shared between threads safely |
6 | | | | |
7 | | required by a bound introduced by this call | |
b7449926 | 8 | | |
1b1a35ee XL |
9 | = help: the trait `Sync` is not implemented for `Cell<i32>` |
10 | = note: required because of the requirements on the impl of `Sync` for `MutexGuard<'_, Cell<i32>>` | |
94222f64 XL |
11 | note: required by a bound in `test_sync` |
12 | --> $DIR/mutexguard-sync.rs:5:17 | |
13 | | | |
14 | LL | fn test_sync<T: Sync>(_t: T) {} | |
15 | | ^^^^ required by this bound in `test_sync` | |
b7449926 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
19 | For more information about this error, try `rustc --explain E0277`. |