fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0600]: cannot apply unary operator `-` to type `usize` 2 --> $DIR/unsigned-literal-negation.rs:2:13 3 | 4LL | let x = -1 as usize; 5 | ^^ 6 | | 7 | cannot apply unary operator `-` 8 | help: you may have meant the maximum value of `usize`: `usize::MAX` 9 | 10 = note: unsigned values cannot be negated 11 12error[E0600]: cannot apply unary operator `-` to type `usize` 13 --> $DIR/unsigned-literal-negation.rs:3:13 14 | 15LL | let x = (-1) as usize; 16 | ^^^^ 17 | | 18 | cannot apply unary operator `-` 19 | help: you may have meant the maximum value of `usize`: `usize::MAX` 20 | 21 = note: unsigned values cannot be negated 22 23error[E0600]: cannot apply unary operator `-` to type `u32` 24 --> $DIR/unsigned-literal-negation.rs:4:18 25 | 26LL | let x: u32 = -1; 27 | ^^ 28 | | 29 | cannot apply unary operator `-` 30 | help: you may have meant the maximum value of `u32`: `u32::MAX` 31 | 32 = note: unsigned values cannot be negated 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0600`.