1 error[E0277]: `MyNotSync` cannot be shared between threads safely
2 --> $DIR/typeck-default-trait-impl-negation-sync.rs:33:15
4 LL | fn is_sync<T: Sync>() {}
5 | ---- required by this bound in `is_sync`
7 LL | is_sync::<MyNotSync>();
8 | ^^^^^^^^^ `MyNotSync` cannot be shared between threads safely
10 = help: the trait `Sync` is not implemented for `MyNotSync`
12 error[E0277]: `UnsafeCell<u8>` cannot be shared between threads safely
13 --> $DIR/typeck-default-trait-impl-negation-sync.rs:36:5
15 LL | fn is_sync<T: Sync>() {}
16 | ---- required by this bound in `is_sync`
18 LL | is_sync::<MyTypeWUnsafe>();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<u8>` cannot be shared between threads safely
21 = help: within `MyTypeWUnsafe`, the trait `Sync` is not implemented for `UnsafeCell<u8>`
22 note: required because it appears within the type `MyTypeWUnsafe`
23 --> $DIR/typeck-default-trait-impl-negation-sync.rs:21:8
25 LL | struct MyTypeWUnsafe {
28 error[E0277]: `Managed` cannot be shared between threads safely
29 --> $DIR/typeck-default-trait-impl-negation-sync.rs:39:5
31 LL | fn is_sync<T: Sync>() {}
32 | ---- required by this bound in `is_sync`
34 LL | is_sync::<MyTypeManaged>();
35 | ^^^^^^^^^^^^^^^^^^^^^^^^ `Managed` cannot be shared between threads safely
37 = help: within `MyTypeManaged`, the trait `Sync` is not implemented for `Managed`
38 note: required because it appears within the type `MyTypeManaged`
39 --> $DIR/typeck-default-trait-impl-negation-sync.rs:25:8
41 LL | struct MyTypeManaged {
44 error: aborting due to 3 previous errors
46 For more information about this error, try `rustc --explain E0277`.