2018-08-08 07:28:26 -05:00
|
|
|
error: inherent impls cannot be negative
|
2020-03-05 17:39:35 -06:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:7:7
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl !TestType {}
|
2020-03-05 17:39:35 -06:00
|
|
|
| -^^^^^^^^ inherent impl for this type
|
|
|
|
| |
|
|
|
|
| negative because of this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0198]: negative impls cannot be unsafe
|
2020-03-04 18:15:23 -06:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:12:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl !Send for TestType {}
|
2020-03-05 17:39:35 -06:00
|
|
|
| ------ -^^^^
|
|
|
|
| | |
|
|
|
|
| | negative because of this
|
2020-01-29 19:42:33 -06:00
|
|
|
| unsafe because of this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: inherent impls cannot be negative
|
2020-03-05 17:39:35 -06:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:19:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<T> !TestType2<T> {}
|
2020-03-05 17:39:35 -06:00
|
|
|
| -^^^^^^^^^^^^ inherent impl for this type
|
|
|
|
| |
|
|
|
|
| negative because of this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0198]: negative impls cannot be unsafe
|
2020-03-04 18:15:23 -06:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:22:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> !Send for TestType2<T> {}
|
2020-03-05 17:39:35 -06:00
|
|
|
| ------ -^^^^
|
|
|
|
| | |
|
|
|
|
| | negative because of this
|
2020-01-29 19:42:33 -06:00
|
|
|
| unsafe because of this
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-03-02 17:26:00 -06:00
|
|
|
error[E0192]: invalid negative impl
|
|
|
|
--> $DIR/syntax-trait-polarity.rs:14:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl !TestTrait for TestType {}
|
2020-03-02 17:26:00 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: negative impls are only allowed for auto traits, like `Send` and `Sync`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-03-02 17:26:00 -06:00
|
|
|
error[E0192]: invalid negative impl
|
|
|
|
--> $DIR/syntax-trait-polarity.rs:24:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<T> !TestTrait for TestType2<T> {}
|
2020-03-02 17:26:00 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: negative impls are only allowed for auto traits, like `Send` and `Sync`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0192, E0198.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0192`.
|