]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: literal out of range for `i8` |
0731742a | 2 | --> $DIR/enum-discrim-too-small2.rs:8:11 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | Ci8 = 223, |
b7449926 XL |
5 | | ^^^ |
6 | | | |
74b04a01 | 7 | note: the lint level is defined here |
0731742a | 8 | --> $DIR/enum-discrim-too-small2.rs:1:9 |
b7449926 XL |
9 | | |
10 | LL | #![deny(overflowing_literals)] | |
11 | | ^^^^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 12 | = note: the literal `223` does not fit into the type `i8` whose range is `-128..=127` |
6a06907d | 13 | = help: consider using the type `u8` instead |
b7449926 | 14 | |
48663c56 | 15 | error: literal out of range for `i16` |
0731742a | 16 | --> $DIR/enum-discrim-too-small2.rs:15:12 |
b7449926 | 17 | | |
532ac7d7 | 18 | LL | Ci16 = 55555, |
b7449926 | 19 | | ^^^^^ |
ba9703b0 XL |
20 | | |
21 | = note: the literal `55555` does not fit into the type `i16` whose range is `-32768..=32767` | |
6a06907d | 22 | = help: consider using the type `u16` instead |
b7449926 | 23 | |
48663c56 | 24 | error: literal out of range for `i32` |
0731742a | 25 | --> $DIR/enum-discrim-too-small2.rs:22:12 |
b7449926 | 26 | | |
532ac7d7 | 27 | LL | Ci32 = 3_000_000_000, |
b7449926 | 28 | | ^^^^^^^^^^^^^ |
ba9703b0 XL |
29 | | |
30 | = note: the literal `3_000_000_000` does not fit into the type `i32` whose range is `-2147483648..=2147483647` | |
6a06907d | 31 | = help: consider using the type `u32` instead |
b7449926 | 32 | |
48663c56 | 33 | error: literal out of range for `i64` |
0731742a | 34 | --> $DIR/enum-discrim-too-small2.rs:29:12 |
b7449926 | 35 | | |
532ac7d7 | 36 | LL | Ci64 = 9223372036854775809, |
b7449926 | 37 | | ^^^^^^^^^^^^^^^^^^^ |
ba9703b0 XL |
38 | | |
39 | = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807` | |
6a06907d | 40 | = help: consider using the type `u64` instead |
b7449926 XL |
41 | |
42 | error: aborting due to 4 previous errors | |
43 |