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 | --------------- ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
7 note: the lint level is defined here
8 --> $DIR/const-err-multi.rs:1:9
10 LL | #![deny(const_err)]
12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
15 error: any use of this value will cause an error
16 --> $DIR/const-err-multi.rs:6:19
18 LL | pub const B: i8 = A;
19 | --------------- ^ referenced constant has errors
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
24 error: any use of this value will cause an error
25 --> $DIR/const-err-multi.rs:9:19
27 LL | pub const C: u8 = A as u8;
28 | --------------- ^ referenced constant has errors
30 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
33 error: any use of this value will cause an error
34 --> $DIR/const-err-multi.rs:12:24
36 LL | pub const D: i8 = 50 - A;
37 | --------------- ^ referenced constant has errors
39 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
42 error: aborting due to 4 previous errors
44 Future incompatibility report: Future breakage diagnostic:
45 error: any use of this value will cause an error
46 --> $DIR/const-err-multi.rs:3:19
48 LL | pub const A: i8 = -i8::MIN;
49 | --------------- ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
51 note: the lint level is defined here
52 --> $DIR/const-err-multi.rs:1:9
54 LL | #![deny(const_err)]
56 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
57 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
59 Future breakage diagnostic:
60 error: any use of this value will cause an error
61 --> $DIR/const-err-multi.rs:6:19
63 LL | pub const B: i8 = A;
64 | --------------- ^ referenced constant has errors
66 note: the lint level is defined here
67 --> $DIR/const-err-multi.rs:1:9
69 LL | #![deny(const_err)]
71 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
74 Future breakage diagnostic:
75 error: any use of this value will cause an error
76 --> $DIR/const-err-multi.rs:9:19
78 LL | pub const C: u8 = A as u8;
79 | --------------- ^ referenced constant has errors
81 note: the lint level is defined here
82 --> $DIR/const-err-multi.rs:1:9
84 LL | #![deny(const_err)]
86 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
89 Future breakage diagnostic:
90 error: any use of this value will cause an error
91 --> $DIR/const-err-multi.rs:12:24
93 LL | pub const D: i8 = 50 - A;
94 | --------------- ^ referenced constant has errors
96 note: the lint level is defined here
97 --> $DIR/const-err-multi.rs:1:9
99 LL | #![deny(const_err)]
101 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
102 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>