fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
609 B19 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   |                       ^^ cannot apply unary operator `-`
6   |
7   = note: unsigned values cannot be negated
8
9error[E0600]: cannot apply unary operator `-` to type `u8`
10  --> $DIR/feature-gate-negate-unsigned.rs:14:14
11   |
12LL |     let _y = -x;
13   |              ^^ cannot apply unary operator `-`
14   |
15   = note: unsigned values cannot be negated
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0600`.