]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mutexguard-sync.stderr
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / mutexguard-sync.stderr
1 error[E0277]: `Cell<i32>` cannot be shared between threads safely
2   --> $DIR/mutexguard-sync.rs:11:15
3    |
4 LL |     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: required for `MutexGuard<'_, Cell<i32>>` to implement `Sync`
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`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.