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