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