1 error[E0277]: `UnsafeCell<MySync<{integer}>>` cannot be shared between threads safely
2 --> $DIR/typeck-unsafe-always-share.rs:19:10
4 LL | fn test<T: Sync>(s: T) {}
5 | ---- required by this bound in `test`
8 | ^^ `UnsafeCell<MySync<{integer}>>` cannot be shared between threads safely
10 = help: the trait `Sync` is not implemented for `UnsafeCell<MySync<{integer}>>`
12 error[E0277]: `UnsafeCell<NoSync>` cannot be shared between threads safely
13 --> $DIR/typeck-unsafe-always-share.rs:23:10
15 LL | fn test<T: Sync>(s: T) {}
16 | ---- required by this bound in `test`
19 | ^^^ `UnsafeCell<NoSync>` cannot be shared between threads safely
21 = help: the trait `Sync` is not implemented for `UnsafeCell<NoSync>`
23 error[E0277]: `UnsafeCell<NoSync>` cannot be shared between threads safely
24 --> $DIR/typeck-unsafe-always-share.rs:27:5
26 LL | fn test<T: Sync>(s: T) {}
27 | ---- required by this bound in `test`
30 | ^^^^ `UnsafeCell<NoSync>` cannot be shared between threads safely
32 = help: within `MySync<NoSync>`, the trait `Sync` is not implemented for `UnsafeCell<NoSync>`
33 = note: required because it appears within the type `MySync<NoSync>`
35 error[E0277]: `NoSync` cannot be shared between threads safely
36 --> $DIR/typeck-unsafe-always-share.rs:30:10
38 LL | fn test<T: Sync>(s: T) {}
39 | ---- required by this bound in `test`
42 | ^^^^^^ `NoSync` cannot be shared between threads safely
44 = help: the trait `Sync` is not implemented for `NoSync`
46 error: aborting due to 4 previous errors
48 For more information about this error, try `rustc --explain E0277`.