]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mutexguard-sync.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / mutexguard-sync.stderr
CommitLineData
1b1a35ee 1error[E0277]: `Cell<i32>` cannot be shared between threads safely
e1599b0c 2 --> $DIR/mutexguard-sync.rs:11:15
b7449926
XL
3 |
4LL | 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
11note: required by a bound in `test_sync`
12 --> $DIR/mutexguard-sync.rs:5:17
13 |
14LL | fn test_sync<T: Sync>(_t: T) {}
15 | ^^^^ required by this bound in `test_sync`
b7449926
XL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.