fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.2 KiB39 linesraw
1error: literal out of range for `i8`
2  --> $DIR/enum-discrim-too-small2.rs:8:11
3   |
4LL |     Ci8 = 223,
5   |           ^^^
6   |
7note: the lint level is defined here
8  --> $DIR/enum-discrim-too-small2.rs:1:9
9   |
10LL | #![deny(overflowing_literals)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12   = note: the literal `223` does not fit into the type `i8` whose range is `-128..=127`
13
14error: literal out of range for `i16`
15  --> $DIR/enum-discrim-too-small2.rs:15:12
16   |
17LL |     Ci16 = 55555,
18   |            ^^^^^
19   |
20   = note: the literal `55555` does not fit into the type `i16` whose range is `-32768..=32767`
21
22error: literal out of range for `i32`
23  --> $DIR/enum-discrim-too-small2.rs:22:12
24   |
25LL |     Ci32 = 3_000_000_000,
26   |            ^^^^^^^^^^^^^
27   |
28   = note: the literal `3_000_000_000` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
29
30error: literal out of range for `i64`
31  --> $DIR/enum-discrim-too-small2.rs:29:12
32   |
33LL |     Ci64 = 9223372036854775809,
34   |            ^^^^^^^^^^^^^^^^^^^
35   |
36   = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
37
38error: aborting due to 4 previous errors
39