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