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`
24 error[E0277]: `Managed` cannot be shared between threads safely
25 --> $DIR/typeck-default-trait-impl-negation-sync.rs:39:5
27 LL | fn is_sync<T: Sync>() {}
28 | ---- required by this bound in `is_sync`
30 LL | is_sync::<MyTypeManaged>();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^ `Managed` cannot be shared between threads safely
33 = help: within `MyTypeManaged`, the trait `Sync` is not implemented for `Managed`
34 = note: required because it appears within the type `MyTypeManaged`
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0277`.