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

33 lines
909 B
Plaintext
Raw Normal View History

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