os-rust/src/test/ui/feature-gates/feature-gate-negate-unsigned.stderr

20 lines
609 B
Text
Raw Normal View History

error[E0600]: cannot apply unary operator `-` to type `usize`
--> $DIR/feature-gate-negate-unsigned.rs:20:23
|
2018-02-23 03:42:32 +03:00
LL | let _max: usize = -1;
2018-05-08 22:20:41 +03:00
| ^^ cannot apply unary operator `-`
2018-04-22 20:35:21 +03:00
|
2018-05-08 22:20:41 +03:00
= note: unsigned values cannot be negated
error[E0600]: cannot apply unary operator `-` to type `u8`
--> $DIR/feature-gate-negate-unsigned.rs:24:14
|
2018-02-23 03:42:32 +03:00
LL | let _y = -x;
2018-05-08 22:20:41 +03:00
| ^^ cannot apply unary operator `-`
2018-04-22 20:35:21 +03:00
|
2018-05-08 22:20:41 +03:00
= note: unsigned values cannot be negated
error: aborting due to 2 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0600`.