fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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