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