fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
637 B19 linesraw
1error: any use of this value will cause an error
2  --> $DIR/const-len-underflow-separate-spans.rs:7:20
3   |
4LL | const LEN: usize = ONE - TWO;
5   | -------------------^^^^^^^^^-
6   |                    |
7   |                    attempt to subtract with overflow
8   |
9   = note: `#[deny(const_err)]` on by default
10
11error[E0080]: evaluation of constant value failed
12  --> $DIR/const-len-underflow-separate-spans.rs:11:17
13   |
14LL |     let a: [i8; LEN] = unimplemented!();
15   |                 ^^^ referenced constant has errors
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0080`.