1 error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
2 --> $DIR/not-sync.rs:18:5
4 LL | test::<Cell<i32>>();
5 | ^^^^^^^^^^^^^^^^^ `std::cell::Cell<i32>` cannot be shared between threads safely
7 = help: the trait `std::marker::Sync` is not implemented for `std::cell::Cell<i32>`
8 note: required by `test`
9 --> $DIR/not-sync.rs:15:1
11 LL | fn test<T: Sync>() {}
14 error[E0277]: `std::cell::RefCell<i32>` cannot be shared between threads safely
15 --> $DIR/not-sync.rs:20:5
17 LL | test::<RefCell<i32>>();
18 | ^^^^^^^^^^^^^^^^^^^^ `std::cell::RefCell<i32>` cannot be shared between threads safely
20 = help: the trait `std::marker::Sync` is not implemented for `std::cell::RefCell<i32>`
21 note: required by `test`
22 --> $DIR/not-sync.rs:15:1
24 LL | fn test<T: Sync>() {}
27 error[E0277]: `std::rc::Rc<i32>` cannot be shared between threads safely
28 --> $DIR/not-sync.rs:23:5
30 LL | test::<Rc<i32>>();
31 | ^^^^^^^^^^^^^^^ `std::rc::Rc<i32>` cannot be shared between threads safely
33 = help: the trait `std::marker::Sync` is not implemented for `std::rc::Rc<i32>`
34 note: required by `test`
35 --> $DIR/not-sync.rs:15:1
37 LL | fn test<T: Sync>() {}
40 error[E0277]: `std::rc::Weak<i32>` cannot be shared between threads safely
41 --> $DIR/not-sync.rs:25:5
43 LL | test::<Weak<i32>>();
44 | ^^^^^^^^^^^^^^^^^ `std::rc::Weak<i32>` cannot be shared between threads safely
46 = help: the trait `std::marker::Sync` is not implemented for `std::rc::Weak<i32>`
47 note: required by `test`
48 --> $DIR/not-sync.rs:15:1
50 LL | fn test<T: Sync>() {}
53 error[E0277]: `std::sync::mpsc::Receiver<i32>` cannot be shared between threads safely
54 --> $DIR/not-sync.rs:28:5
56 LL | test::<Receiver<i32>>();
57 | ^^^^^^^^^^^^^^^^^^^^^ `std::sync::mpsc::Receiver<i32>` cannot be shared between threads safely
59 = help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Receiver<i32>`
60 note: required by `test`
61 --> $DIR/not-sync.rs:15:1
63 LL | fn test<T: Sync>() {}
66 error[E0277]: `std::sync::mpsc::Sender<i32>` cannot be shared between threads safely
67 --> $DIR/not-sync.rs:30:5
69 LL | test::<Sender<i32>>();
70 | ^^^^^^^^^^^^^^^^^^^ `std::sync::mpsc::Sender<i32>` cannot be shared between threads safely
72 = help: the trait `std::marker::Sync` is not implemented for `std::sync::mpsc::Sender<i32>`
73 note: required by `test`
74 --> $DIR/not-sync.rs:15:1
76 LL | fn test<T: Sync>() {}
79 error: aborting due to 6 previous errors
81 For more information about this error, try `rustc --explain E0277`.