1 error: inherent impls cannot be negative
2 --> $DIR/syntax-trait-polarity.rs:7:1
7 error[E0198]: negative impls cannot be unsafe
8 --> $DIR/syntax-trait-polarity.rs:12:1
10 LL | unsafe impl !Send for TestType {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: inherent impls cannot be negative
14 --> $DIR/syntax-trait-polarity.rs:19:1
16 LL | impl<T> !TestType2<T> {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^
19 error[E0198]: negative impls cannot be unsafe
20 --> $DIR/syntax-trait-polarity.rs:22:1
22 LL | unsafe impl<T> !Send for TestType2<T> {}
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
26 --> $DIR/syntax-trait-polarity.rs:14:1
28 LL | impl !TestTrait for TestType {}
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
32 --> $DIR/syntax-trait-polarity.rs:24:1
34 LL | impl<T> !TestTrait for TestType2<T> {}
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 error: aborting due to 6 previous errors
39 Some errors occurred: E0192, E0198.
40 For more information about an error, try `rustc --explain E0192`.