]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const-eval-overflow2b.stderr
Update tests to remove old numeric constants
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow2b.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-eval-overflow2b.rs:14:6
3    |
4 LL | / const VALS_I8: (i8,) =
5 LL | |     (
6 LL | |      i8::MAX + 1,
7    | |      ^^^^^^^^^^^ attempt to compute `i8::MAX + 1_i8`, which would overflow
8 LL | |      );
9    | |_______-
10    |
11 note: the lint level is defined here
12   --> $DIR/const-eval-overflow2b.rs:8:9
13    |
14 LL | #![deny(const_err)]
15    |         ^^^^^^^^^
16
17 error: any use of this value will cause an error
18   --> $DIR/const-eval-overflow2b.rs:20:6
19    |
20 LL | / const VALS_I16: (i16,) =
21 LL | |     (
22 LL | |      i16::MAX + 1,
23    | |      ^^^^^^^^^^^^ attempt to compute `i16::MAX + 1_i16`, which would overflow
24 LL | |      );
25    | |_______-
26
27 error: any use of this value will cause an error
28   --> $DIR/const-eval-overflow2b.rs:26:6
29    |
30 LL | / const VALS_I32: (i32,) =
31 LL | |     (
32 LL | |      i32::MAX + 1,
33    | |      ^^^^^^^^^^^^ attempt to compute `i32::MAX + 1_i32`, which would overflow
34 LL | |      );
35    | |_______-
36
37 error: any use of this value will cause an error
38   --> $DIR/const-eval-overflow2b.rs:32:6
39    |
40 LL | / const VALS_I64: (i64,) =
41 LL | |     (
42 LL | |      i64::MAX + 1,
43    | |      ^^^^^^^^^^^^ attempt to compute `i64::MAX + 1_i64`, which would overflow
44 LL | |      );
45    | |_______-
46
47 error: any use of this value will cause an error
48   --> $DIR/const-eval-overflow2b.rs:38:6
49    |
50 LL | / const VALS_U8: (u8,) =
51 LL | |     (
52 LL | |      u8::MAX + 1,
53    | |      ^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
54 LL | |      );
55    | |_______-
56
57 error: any use of this value will cause an error
58   --> $DIR/const-eval-overflow2b.rs:43:6
59    |
60 LL | / const VALS_U16: (u16,) = (
61 LL | |      u16::MAX + 1,
62    | |      ^^^^^^^^^^^^ attempt to compute `u16::MAX + 1_u16`, which would overflow
63 LL | |      );
64    | |_______-
65
66 error: any use of this value will cause an error
67   --> $DIR/const-eval-overflow2b.rs:48:6
68    |
69 LL | / const VALS_U32: (u32,) = (
70 LL | |      u32::MAX + 1,
71    | |      ^^^^^^^^^^^^ attempt to compute `u32::MAX + 1_u32`, which would overflow
72 LL | |      );
73    | |_______-
74
75 error: any use of this value will cause an error
76   --> $DIR/const-eval-overflow2b.rs:54:6
77    |
78 LL | / const VALS_U64: (u64,) =
79 LL | |     (
80 LL | |      u64::MAX + 1,
81    | |      ^^^^^^^^^^^^ attempt to compute `u64::MAX + 1_u64`, which would overflow
82 LL | |      );
83    | |_______-
84
85 error: aborting due to 8 previous errors
86