fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB40 linesraw
1error: any use of this value will cause an error
2  --> $DIR/const-err-multi.rs:3:19
3   |
4LL | pub const A: i8 = -std::i8::MIN;
5   | ------------------^^^^^^^^^^^^^-
6   |                   |
7   |                   attempt to negate with overflow
8   |
9note: lint level defined here
10  --> $DIR/const-err-multi.rs:1:9
11   |
12LL | #![deny(const_err)]
13   |         ^^^^^^^^^
14
15error: any use of this value will cause an error
16  --> $DIR/const-err-multi.rs:5:19
17   |
18LL | pub const B: i8 = A;
19   | ------------------^-
20   |                   |
21   |                   referenced constant has errors
22
23error: any use of this value will cause an error
24  --> $DIR/const-err-multi.rs:7:19
25   |
26LL | pub const C: u8 = A as u8;
27   | ------------------^^^^^^^-
28   |                   |
29   |                   referenced constant has errors
30
31error: any use of this value will cause an error
32  --> $DIR/const-err-multi.rs:9:19
33   |
34LL | pub const D: i8 = 50 - A;
35   | ------------------^^^^^^-
36   |                   |
37   |                   referenced constant has errors
38
39error: aborting due to 4 previous errors
40