1 error[E0600]: cannot apply unary operator `-` to type `usize`
2 --> $DIR/unsigned-literal-negation.rs:2:13
4 LL | let x = -1 as usize;
7 | cannot apply unary operator `-`
8 | help: you may have meant the maximum value of `usize`: `usize::MAX`
10 = note: unsigned values cannot be negated
12 error[E0600]: cannot apply unary operator `-` to type `usize`
13 --> $DIR/unsigned-literal-negation.rs:3:13
15 LL | let x = (-1) as usize;
18 | cannot apply unary operator `-`
19 | help: you may have meant the maximum value of `usize`: `usize::MAX`
21 = note: unsigned values cannot be negated
23 error[E0600]: cannot apply unary operator `-` to type `u32`
24 --> $DIR/unsigned-literal-negation.rs:4:18
29 | cannot apply unary operator `-`
30 | help: you may have meant the maximum value of `u32`: `u32::MAX`
32 = note: unsigned values cannot be negated
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0600`.