]> git.proxmox.com Git - rustc.git/blame - src/test/ui/enum/enum-discrim-too-small2.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / enum / enum-discrim-too-small2.stderr
CommitLineData
48663c56 1error: literal out of range for `i8`
0731742a 2 --> $DIR/enum-discrim-too-small2.rs:8:11
b7449926 3 |
532ac7d7 4LL | Ci8 = 223,
b7449926
XL
5 | ^^^
6 |
74b04a01 7note: the lint level is defined here
0731742a 8 --> $DIR/enum-discrim-too-small2.rs:1:9
b7449926
XL
9 |
10LL | #![deny(overflowing_literals)]
11 | ^^^^^^^^^^^^^^^^^^^^
ba9703b0 12 = note: the literal `223` does not fit into the type `i8` whose range is `-128..=127`
b7449926 13
48663c56 14error: literal out of range for `i16`
0731742a 15 --> $DIR/enum-discrim-too-small2.rs:15:12
b7449926 16 |
532ac7d7 17LL | Ci16 = 55555,
b7449926 18 | ^^^^^
ba9703b0
XL
19 |
20 = note: the literal `55555` does not fit into the type `i16` whose range is `-32768..=32767`
b7449926 21
48663c56 22error: literal out of range for `i32`
0731742a 23 --> $DIR/enum-discrim-too-small2.rs:22:12
b7449926 24 |
532ac7d7 25LL | Ci32 = 3_000_000_000,
b7449926 26 | ^^^^^^^^^^^^^
ba9703b0
XL
27 |
28 = note: the literal `3_000_000_000` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
b7449926 29
48663c56 30error: literal out of range for `i64`
0731742a 31 --> $DIR/enum-discrim-too-small2.rs:29:12
b7449926 32 |
532ac7d7 33LL | Ci64 = 9223372036854775809,
b7449926 34 | ^^^^^^^^^^^^^^^^^^^
ba9703b0
XL
35 |
36 = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
b7449926
XL
37
38error: aborting due to 4 previous errors
39