fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
760 B22 linesraw
1error[E0600]: cannot apply unary operator `-` to type `usize`
2  --> $DIR/feature-gate-negate-unsigned.rs:10:23
3   |
4LL |     let _max: usize = -1;
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 `u8`
13  --> $DIR/feature-gate-negate-unsigned.rs:14:14
14   |
15LL |     let _y = -x;
16   |              ^^ cannot apply unary operator `-`
17   |
18   = note: unsigned values cannot be negated
19
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0600`.