]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const-eval-overflow2c.stderr
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow2c.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-eval-overflow2c.rs:14:6
3    |
4 LL | / const VALS_I8: (i8,) =
5 LL | |     (
6 LL | |      i8::MIN * 2,
7    | |      ^^^^^^^^^^^ attempt to compute `i8::MIN * 2_i8`, which would overflow
8 LL | |      );
9    | |_______-
10    |
11 note: the lint level is defined here
12   --> $DIR/const-eval-overflow2c.rs:8:9
13    |
14 LL | #![deny(const_err)]
15    |         ^^^^^^^^^
16    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
17    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
18
19 error: any use of this value will cause an error
20   --> $DIR/const-eval-overflow2c.rs:21:6
21    |
22 LL | / const VALS_I16: (i16,) =
23 LL | |     (
24 LL | |      i16::MIN * 2,
25    | |      ^^^^^^^^^^^^ attempt to compute `i16::MIN * 2_i16`, which would overflow
26 LL | |      );
27    | |_______-
28    |
29    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
30    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
31
32 error: any use of this value will cause an error
33   --> $DIR/const-eval-overflow2c.rs:28:6
34    |
35 LL | / const VALS_I32: (i32,) =
36 LL | |     (
37 LL | |      i32::MIN * 2,
38    | |      ^^^^^^^^^^^^ attempt to compute `i32::MIN * 2_i32`, which would overflow
39 LL | |      );
40    | |_______-
41    |
42    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
43    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
44
45 error: any use of this value will cause an error
46   --> $DIR/const-eval-overflow2c.rs:35:6
47    |
48 LL | / const VALS_I64: (i64,) =
49 LL | |     (
50 LL | |      i64::MIN * 2,
51    | |      ^^^^^^^^^^^^ attempt to compute `i64::MIN * 2_i64`, which would overflow
52 LL | |      );
53    | |_______-
54    |
55    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
56    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
57
58 error: any use of this value will cause an error
59   --> $DIR/const-eval-overflow2c.rs:42:6
60    |
61 LL | / const VALS_U8: (u8,) =
62 LL | |     (
63 LL | |      u8::MAX * 2,
64    | |      ^^^^^^^^^^^ attempt to compute `u8::MAX * 2_u8`, which would overflow
65 LL | |      );
66    | |_______-
67    |
68    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
69    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
70
71 error: any use of this value will cause an error
72   --> $DIR/const-eval-overflow2c.rs:48:6
73    |
74 LL | / const VALS_U16: (u16,) = (
75 LL | |      u16::MAX * 2,
76    | |      ^^^^^^^^^^^^ attempt to compute `u16::MAX * 2_u16`, which would overflow
77 LL | |      );
78    | |_______-
79    |
80    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
81    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
82
83 error: any use of this value will cause an error
84   --> $DIR/const-eval-overflow2c.rs:54:6
85    |
86 LL | / const VALS_U32: (u32,) = (
87 LL | |      u32::MAX * 2,
88    | |      ^^^^^^^^^^^^ attempt to compute `u32::MAX * 2_u32`, which would overflow
89 LL | |      );
90    | |_______-
91    |
92    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
93    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
94
95 error: any use of this value will cause an error
96   --> $DIR/const-eval-overflow2c.rs:61:6
97    |
98 LL | / const VALS_U64: (u64,) =
99 LL | |     (
100 LL | |      u64::MAX * 2,
101    | |      ^^^^^^^^^^^^ attempt to compute `u64::MAX * 2_u64`, which would overflow
102 LL | |      );
103    | |_______-
104    |
105    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
106    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
107
108 error: aborting due to 8 previous errors
109