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