]>
Commit | Line | Data |
---|---|---|
72b1a166 | 1 | error[E0277]: `Cell<i32>` cannot be shared between threads safely |
e1599b0c | 2 | --> $DIR/not-sync.rs:8:12 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | fn test<T: Sync>() {} |
72b1a166 | 5 | | ---- required by this bound in `test` |
e1599b0c | 6 | ... |
b7449926 | 7 | LL | 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 | 12 | error[E0277]: `RefCell<i32>` cannot be shared between threads safely |
e1599b0c | 13 | --> $DIR/not-sync.rs:10:12 |
b7449926 | 14 | | |
e1599b0c | 15 | LL | fn test<T: Sync>() {} |
72b1a166 | 16 | | ---- required by this bound in `test` |
e1599b0c | 17 | ... |
b7449926 | 18 | LL | 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 | 23 | error[E0277]: `Rc<i32>` cannot be shared between threads safely |
e1599b0c | 24 | --> $DIR/not-sync.rs:13:12 |
b7449926 | 25 | | |
e1599b0c | 26 | LL | fn test<T: Sync>() {} |
72b1a166 | 27 | | ---- required by this bound in `test` |
e1599b0c | 28 | ... |
b7449926 | 29 | LL | 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 | |
34 | error[E0277]: `std::rc::Weak<i32>` cannot be shared between threads safely | |
e1599b0c | 35 | --> $DIR/not-sync.rs:15:12 |
b7449926 | 36 | | |
e1599b0c | 37 | LL | fn test<T: Sync>() {} |
72b1a166 | 38 | | ---- required by this bound in `test` |
e1599b0c | 39 | ... |
b7449926 | 40 | LL | 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 | |
45 | error[E0277]: `std::sync::mpsc::Receiver<i32>` cannot be shared between threads safely | |
e1599b0c | 46 | --> $DIR/not-sync.rs:18:12 |
b7449926 | 47 | | |
e1599b0c | 48 | LL | fn test<T: Sync>() {} |
72b1a166 | 49 | | ---- required by this bound in `test` |
e1599b0c | 50 | ... |
b7449926 | 51 | LL | 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 | 56 | error[E0277]: `Sender<i32>` cannot be shared between threads safely |
e1599b0c | 57 | --> $DIR/not-sync.rs:20:12 |
b7449926 | 58 | | |
e1599b0c | 59 | LL | fn test<T: Sync>() {} |
72b1a166 | 60 | | ---- required by this bound in `test` |
e1599b0c | 61 | ... |
b7449926 | 62 | LL | 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 | |
67 | error: aborting due to 6 previous errors | |
68 | ||
69 | For more information about this error, try `rustc --explain E0277`. |