fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB51 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $DIR/const-eval-overflow2.rs:12:6
3   |
4LL |      i8::MIN - 1,
5   |      ^^^^^^^^^^^ attempt to compute `i8::MIN - 1_i8`, which would overflow
6
7error[E0080]: evaluation of constant value failed
8  --> $DIR/const-eval-overflow2.rs:18:6
9   |
10LL |      i16::MIN - 1,
11   |      ^^^^^^^^^^^^ attempt to compute `i16::MIN - 1_i16`, which would overflow
12
13error[E0080]: evaluation of constant value failed
14  --> $DIR/const-eval-overflow2.rs:24:6
15   |
16LL |      i32::MIN - 1,
17   |      ^^^^^^^^^^^^ attempt to compute `i32::MIN - 1_i32`, which would overflow
18
19error[E0080]: evaluation of constant value failed
20  --> $DIR/const-eval-overflow2.rs:30:6
21   |
22LL |      i64::MIN - 1,
23   |      ^^^^^^^^^^^^ attempt to compute `i64::MIN - 1_i64`, which would overflow
24
25error[E0080]: evaluation of constant value failed
26  --> $DIR/const-eval-overflow2.rs:36:6
27   |
28LL |      u8::MIN - 1,
29   |      ^^^^^^^^^^^ attempt to compute `0_u8 - 1_u8`, which would overflow
30
31error[E0080]: evaluation of constant value failed
32  --> $DIR/const-eval-overflow2.rs:41:6
33   |
34LL |      u16::MIN - 1,
35   |      ^^^^^^^^^^^^ attempt to compute `0_u16 - 1_u16`, which would overflow
36
37error[E0080]: evaluation of constant value failed
38  --> $DIR/const-eval-overflow2.rs:46:6
39   |
40LL |      u32::MIN - 1,
41   |      ^^^^^^^^^^^^ attempt to compute `0_u32 - 1_u32`, which would overflow
42
43error[E0080]: evaluation of constant value failed
44  --> $DIR/const-eval-overflow2.rs:52:6
45   |
46LL |      u64::MIN - 1,
47   |      ^^^^^^^^^^^^ attempt to compute `0_u64 - 1_u64`, which would overflow
48
49error: aborting due to 8 previous errors
50
51For more information about this error, try `rustc --explain E0080`.