]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/not-send-sync.stderr
Rollup merge of #43705 - panicbit:option_ref_mut_cloned, r=aturon
[rust.git] / src / test / ui / generator / not-send-sync.stderr
1 error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not satisfied
2   --> $DIR/not-send-sync.rs:26:5
3    |
4 26 |     assert_send(|| {
5    |     ^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
6    |
7    = help: the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
8    = note: required because of the requirements on the impl of `std::marker::Send` for `&std::cell::Cell<i32>`
9    = note: required because it appears within the type `[generator@$DIR/not-send-sync.rs:26:17: 30:6 a:&std::cell::Cell<i32> _]`
10    = note: required by `main::assert_send`
11
12 error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not satisfied in `[generator@$DIR/not-send-sync.rs:19:17: 23:6 ((), std::cell::Cell<i32>)]`
13   --> $DIR/not-send-sync.rs:19:5
14    |
15 19 |     assert_sync(|| {
16    |     ^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
17    |
18    = help: within `[generator@$DIR/not-send-sync.rs:19:17: 23:6 ((), std::cell::Cell<i32>)]`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
19    = note: required because it appears within the type `((), std::cell::Cell<i32>)`
20    = note: required because it appears within the type `[generator@$DIR/not-send-sync.rs:19:17: 23:6 ((), std::cell::Cell<i32>)]`
21    = note: required by `main::assert_sync`
22
23 error: aborting due to 2 previous errors
24