fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error: inherent impls cannot be negative 2 --> $DIR/syntax-trait-polarity.rs:7:1 3 | 4LL | impl !TestType {} 5 | ^^^^^^^^^^^^^^^^^ 6 7error[E0198]: negative impls cannot be unsafe 8 --> $DIR/syntax-trait-polarity.rs:12:1 9 | 10LL | unsafe impl !Send for TestType {} 11 | ------^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 | | 13 | unsafe because of this 14 15error: inherent impls cannot be negative 16 --> $DIR/syntax-trait-polarity.rs:19:1 17 | 18LL | impl<T> !TestType2<T> {} 19 | ^^^^^^^^^^^^^^^^^^^^^^^^ 20 21error[E0198]: negative impls cannot be unsafe 22 --> $DIR/syntax-trait-polarity.rs:22:1 23 | 24LL | unsafe impl<T> !Send for TestType2<T> {} 25 | ------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 | | 27 | unsafe because of this 28 29error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`) 30 --> $DIR/syntax-trait-polarity.rs:14:1 31 | 32LL | impl !TestTrait for TestType {} 33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 34 35error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`) 36 --> $DIR/syntax-trait-polarity.rs:24:1 37 | 38LL | impl<T> !TestTrait for TestType2<T> {} 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 41error: aborting due to 6 previous errors 42 43Some errors have detailed explanations: E0192, E0198. 44For more information about an error, try `rustc --explain E0192`.