1 error: any use of this value will cause an error
2 --> $DIR/const-err-multi.rs:3:19
4 LL | pub const A: i8 = -i8::MIN;
5 | ------------------^^^^^^^^-
7 | attempt to negate `i8::MIN`, which would overflow
9 note: the lint level is defined here
10 --> $DIR/const-err-multi.rs:1:9
12 LL | #![deny(const_err)]
15 error: any use of this value will cause an error
16 --> $DIR/const-err-multi.rs:5:19
18 LL | pub const B: i8 = A;
19 | ------------------^-
21 | referenced constant has errors
23 error: any use of this value will cause an error
24 --> $DIR/const-err-multi.rs:7:19
26 LL | pub const C: u8 = A as u8;
27 | ------------------^-------
29 | referenced constant has errors
31 error: any use of this value will cause an error
32 --> $DIR/const-err-multi.rs:9:24
34 LL | pub const D: i8 = 50 - A;
35 | -----------------------^-
37 | referenced constant has errors
39 error: aborting due to 4 previous errors