1 error[E0277]: `MyNotSync` cannot be shared between threads safely
2 --> $DIR/typeck-default-trait-impl-negation-sync.rs:33:15
4 LL | is_sync::<MyNotSync>();
5 | ^^^^^^^^^ `MyNotSync` cannot be shared between threads safely
7 = help: the trait `Sync` is not implemented for `MyNotSync`
8 note: required by a bound in `is_sync`
9 --> $DIR/typeck-default-trait-impl-negation-sync.rs:29:15
11 LL | fn is_sync<T: Sync>() {}
12 | ^^^^ required by this bound in `is_sync`
14 error[E0277]: `UnsafeCell<u8>` cannot be shared between threads safely
15 --> $DIR/typeck-default-trait-impl-negation-sync.rs:36:5
17 LL | is_sync::<MyTypeWUnsafe>();
18 | ^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<u8>` cannot be shared between threads safely
20 = help: within `MyTypeWUnsafe`, the trait `Sync` is not implemented for `UnsafeCell<u8>`
21 note: required because it appears within the type `MyTypeWUnsafe`
22 --> $DIR/typeck-default-trait-impl-negation-sync.rs:21:8
24 LL | struct MyTypeWUnsafe {
26 note: required by a bound in `is_sync`
27 --> $DIR/typeck-default-trait-impl-negation-sync.rs:29:15
29 LL | fn is_sync<T: Sync>() {}
30 | ^^^^ required by this bound in `is_sync`
32 error[E0277]: `Managed` cannot be shared between threads safely
33 --> $DIR/typeck-default-trait-impl-negation-sync.rs:39:5
35 LL | is_sync::<MyTypeManaged>();
36 | ^^^^^^^^^^^^^^^^^^^^^^^^ `Managed` cannot be shared between threads safely
38 = help: within `MyTypeManaged`, the trait `Sync` is not implemented for `Managed`
39 note: required because it appears within the type `MyTypeManaged`
40 --> $DIR/typeck-default-trait-impl-negation-sync.rs:25:8
42 LL | struct MyTypeManaged {
44 note: required by a bound in `is_sync`
45 --> $DIR/typeck-default-trait-impl-negation-sync.rs:29:15
47 LL | fn is_sync<T: Sync>() {}
48 | ^^^^ required by this bound in `is_sync`
50 error: aborting due to 3 previous errors
52 For more information about this error, try `rustc --explain E0277`.