2018-08-08 12:28:26 +00:00
|
|
|
error: inherent impls cannot be negative
|
2020-03-05 23:39:35 +00:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:7:7
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | impl !TestType {}
|
2020-03-05 23:39:35 +00:00
|
|
|
| -^^^^^^^^ inherent impl for this type
|
|
|
|
| |
|
|
|
|
| negative because of this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0198]: negative impls cannot be unsafe
|
2020-03-05 00:15:23 +00:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:12:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl !Send for TestType {}
|
2020-03-05 23:39:35 +00:00
|
|
|
| ------ -^^^^
|
|
|
|
| | |
|
|
|
|
| | negative because of this
|
2020-01-30 01:42:33 +00:00
|
|
|
| unsafe because of this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: inherent impls cannot be negative
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:18:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | impl<T> !TestType2<T> {}
|
2020-03-05 23:39:35 +00:00
|
|
|
| -^^^^^^^^^^^^ inherent impl for this type
|
|
|
|
| |
|
|
|
|
| negative because of this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0198]: negative impls cannot be unsafe
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/syntax-trait-polarity.rs:21:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> !Send for TestType2<T> {}
|
2020-03-05 23:39:35 +00:00
|
|
|
| ------ -^^^^
|
|
|
|
| | |
|
|
|
|
| | negative because of this
|
2020-01-30 01:42:33 +00:00
|
|
|
| unsafe because of this
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-08 11:39:38 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-01-08 11:39:38 +00:00
|
|
|
For more information about this error, try `rustc --explain E0198`.
|