]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-err-multi.stderr
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
[rust.git] / tests / ui / consts / const-err-multi.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $DIR/const-err-multi.rs:1:19
3    |
4 LL | pub const A: i8 = -i8::MIN;
5    |                   ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
6
7 note: erroneous constant used
8   --> $DIR/const-err-multi.rs:3:19
9    |
10 LL | pub const B: i8 = A;
11    |                   ^
12
13 note: erroneous constant used
14   --> $DIR/const-err-multi.rs:5:19
15    |
16 LL | pub const C: u8 = A as u8;
17    |                   ^
18
19 note: erroneous constant used
20   --> $DIR/const-err-multi.rs:7:24
21    |
22 LL | pub const D: i8 = 50 - A;
23    |                        ^
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0080`.