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