1 error: this constant cannot be used
2 --> $DIR/const-err-multi.rs:13:1
4 LL | pub const A: i8 = -std::i8::MIN;
5 | ^^^^^^^^^^^^^^^^^^-------------^
7 | attempt to negate with overflow
9 note: lint level defined here
10 --> $DIR/const-err-multi.rs:11:9
12 LL | #![deny(const_err)]
15 error: referenced constant has errors
16 --> $DIR/const-err-multi.rs:15:1
18 LL | pub const A: i8 = -std::i8::MIN;
19 | ------------- attempt to negate with overflow
20 LL | //~^ ERROR this constant cannot be used
21 LL | pub const B: i8 = A;
22 | ^^^^^^^^^^^^^^^^^^^^
24 error: this constant cannot be used
25 --> $DIR/const-err-multi.rs:15:1
27 LL | pub const B: i8 = A;
28 | ^^^^^^^^^^^^^^^^^^-^
30 | referenced constant has errors
32 error: referenced constant has errors
33 --> $DIR/const-err-multi.rs:18:1
35 LL | pub const A: i8 = -std::i8::MIN;
36 | ------------- attempt to negate with overflow
38 LL | pub const C: u8 = A as u8;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
41 error: this constant cannot be used
42 --> $DIR/const-err-multi.rs:18:1
44 LL | pub const C: u8 = A as u8;
45 | ^^^^^^^^^^^^^^^^^^-------^
47 | referenced constant has errors
49 error: referenced constant has errors
50 --> $DIR/const-err-multi.rs:21:1
52 LL | pub const A: i8 = -std::i8::MIN;
53 | ------------- attempt to negate with overflow
55 LL | pub const D: i8 = 50 - A;
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^
58 error: this constant cannot be used
59 --> $DIR/const-err-multi.rs:21:1
61 LL | pub const D: i8 = 50 - A;
62 | ^^^^^^^^^^^^^^^^^^------^
64 | referenced constant has errors
66 error: aborting due to 7 previous errors