rust/src/test/ui/enum/enum-discrim-too-small2.stderr

33 lines
762 B
Plaintext
Raw Normal View History

2019-04-27 06:56:57 -05:00
error: literal out of range for `i8`
2018-12-25 09:56:47 -06:00
--> $DIR/enum-discrim-too-small2.rs:8:11
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Ci8 = 223,
2018-08-08 07:28:26 -05:00
| ^^^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/enum-discrim-too-small2.rs:1:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(overflowing_literals)]
| ^^^^^^^^^^^^^^^^^^^^
2019-04-27 06:56:57 -05:00
error: literal out of range for `i16`
2018-12-25 09:56:47 -06:00
--> $DIR/enum-discrim-too-small2.rs:15:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Ci16 = 55555,
2018-08-08 07:28:26 -05:00
| ^^^^^
2019-04-27 06:56:57 -05:00
error: literal out of range for `i32`
2018-12-25 09:56:47 -06:00
--> $DIR/enum-discrim-too-small2.rs:22:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Ci32 = 3_000_000_000,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^
2019-04-27 06:56:57 -05:00
error: literal out of range for `i64`
2018-12-25 09:56:47 -06:00
--> $DIR/enum-discrim-too-small2.rs:29:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | Ci64 = 9223372036854775809,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors