]> git.proxmox.com Git - rustc.git/blame - src/test/ui/not-sync.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / not-sync.stderr
CommitLineData
72b1a166 1error[E0277]: `Cell<i32>` cannot be shared between threads safely
e1599b0c 2 --> $DIR/not-sync.rs:8:12
b7449926 3 |
e1599b0c 4LL | fn test<T: Sync>() {}
72b1a166 5 | ---- required by this bound in `test`
e1599b0c 6...
b7449926 7LL | test::<Cell<i32>>();
72b1a166 8 | ^^^^^^^^^ `Cell<i32>` cannot be shared between threads safely
b7449926 9 |
72b1a166 10 = help: the trait `Sync` is not implemented for `Cell<i32>`
b7449926 11
72b1a166 12error[E0277]: `RefCell<i32>` cannot be shared between threads safely
e1599b0c 13 --> $DIR/not-sync.rs:10:12
b7449926 14 |
e1599b0c 15LL | fn test<T: Sync>() {}
72b1a166 16 | ---- required by this bound in `test`
e1599b0c 17...
b7449926 18LL | test::<RefCell<i32>>();
72b1a166 19 | ^^^^^^^^^^^^ `RefCell<i32>` cannot be shared between threads safely
b7449926 20 |
72b1a166 21 = help: the trait `Sync` is not implemented for `RefCell<i32>`
b7449926 22
72b1a166 23error[E0277]: `Rc<i32>` cannot be shared between threads safely
e1599b0c 24 --> $DIR/not-sync.rs:13:12
b7449926 25 |
e1599b0c 26LL | fn test<T: Sync>() {}
72b1a166 27 | ---- required by this bound in `test`
e1599b0c 28...
b7449926 29LL | test::<Rc<i32>>();
72b1a166 30 | ^^^^^^^ `Rc<i32>` cannot be shared between threads safely
b7449926 31 |
72b1a166 32 = help: the trait `Sync` is not implemented for `Rc<i32>`
b7449926
XL
33
34error[E0277]: `std::rc::Weak<i32>` cannot be shared between threads safely
e1599b0c 35 --> $DIR/not-sync.rs:15:12
b7449926 36 |
e1599b0c 37LL | fn test<T: Sync>() {}
72b1a166 38 | ---- required by this bound in `test`
e1599b0c 39...
b7449926 40LL | test::<Weak<i32>>();
e1599b0c 41 | ^^^^^^^^^ `std::rc::Weak<i32>` cannot be shared between threads safely
b7449926 42 |
72b1a166 43 = help: the trait `Sync` is not implemented for `std::rc::Weak<i32>`
b7449926
XL
44
45error[E0277]: `std::sync::mpsc::Receiver<i32>` cannot be shared between threads safely
e1599b0c 46 --> $DIR/not-sync.rs:18:12
b7449926 47 |
e1599b0c 48LL | fn test<T: Sync>() {}
72b1a166 49 | ---- required by this bound in `test`
e1599b0c 50...
b7449926 51LL | test::<Receiver<i32>>();
e1599b0c 52 | ^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<i32>` cannot be shared between threads safely
b7449926 53 |
72b1a166 54 = help: the trait `Sync` is not implemented for `std::sync::mpsc::Receiver<i32>`
b7449926 55
72b1a166 56error[E0277]: `Sender<i32>` cannot be shared between threads safely
e1599b0c 57 --> $DIR/not-sync.rs:20:12
b7449926 58 |
e1599b0c 59LL | fn test<T: Sync>() {}
72b1a166 60 | ---- required by this bound in `test`
e1599b0c 61...
b7449926 62LL | test::<Sender<i32>>();
72b1a166 63 | ^^^^^^^^^^^ `Sender<i32>` cannot be shared between threads safely
b7449926 64 |
72b1a166 65 = help: the trait `Sync` is not implemented for `Sender<i32>`
b7449926
XL
66
67error: aborting due to 6 previous errors
68
69For more information about this error, try `rustc --explain E0277`.