fork/rust

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

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

master
517 B15 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $DIR/const-len-underflow-separate-spans.rs:10:20
3   |
4LL | const LEN: usize = ONE - TWO;
5   |                    ^^^^^^^^^ attempt to compute `1_usize - 2_usize`, which would overflow
6
7note: erroneous constant encountered
8  --> $DIR/const-len-underflow-separate-spans.rs:14:17
9   |
10LL |     let a: [i8; LEN] = unimplemented!();
11   |                 ^^^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0080`.