fork/rust

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

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

master
716 B27 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $DIR/const-err-multi.rs:1:19
3   |
4LL | pub const A: i8 = -i8::MIN;
5   |                   ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
6
7note: erroneous constant encountered
8  --> $DIR/const-err-multi.rs:3:19
9   |
10LL | pub const B: i8 = A;
11   |                   ^
12
13note: erroneous constant encountered
14  --> $DIR/const-err-multi.rs:5:19
15   |
16LL | pub const C: u8 = A as u8;
17   |                   ^
18
19note: erroneous constant encountered
20  --> $DIR/const-err-multi.rs:7:24
21   |
22LL | pub const D: i8 = 50 - A;
23   |                        ^
24
25error: aborting due to previous error
26
27For more information about this error, try `rustc --explain E0080`.