1 error: literal out of range for `u8`
2 --> $DIR/lint-type-overflow.rs:10:18
7 note: lint level defined here
8 --> $DIR/lint-type-overflow.rs:1:9
10 LL | #![deny(overflowing_literals)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: literal out of range for `u8`
14 --> $DIR/lint-type-overflow.rs:13:14
19 error: literal out of range for `i8`
20 --> $DIR/lint-type-overflow.rs:16:18
22 LL | let x1: i8 = 128;
25 error: literal out of range for `i8`
26 --> $DIR/lint-type-overflow.rs:18:19
28 LL | let x3: i8 = -129;
31 error: literal out of range for `i8`
32 --> $DIR/lint-type-overflow.rs:19:19
34 LL | let x3: i8 = -(129);
37 error: literal out of range for `i8`
38 --> $DIR/lint-type-overflow.rs:20:20
40 LL | let x3: i8 = -{129};
43 error: literal out of range for `i8`
44 --> $DIR/lint-type-overflow.rs:22:10
49 error: literal out of range for `i8`
50 --> $DIR/lint-type-overflow.rs:24:13
55 error: literal out of range for `i8`
56 --> $DIR/lint-type-overflow.rs:28:14
61 error: literal out of range for `i32`
62 --> $DIR/lint-type-overflow.rs:32:18
64 LL | let x: i32 = 2147483648;
67 error: literal out of range for `i32`
68 --> $DIR/lint-type-overflow.rs:33:13
70 LL | let x = 2147483648_i32;
73 error: literal out of range for `i32`
74 --> $DIR/lint-type-overflow.rs:36:19
76 LL | let x: i32 = -2147483649;
79 error: literal out of range for `i32`
80 --> $DIR/lint-type-overflow.rs:37:14
82 LL | let x = -2147483649_i32;
85 error: literal out of range for `i32`
86 --> $DIR/lint-type-overflow.rs:38:13
88 LL | let x = 2147483648;
91 error: literal out of range for `i64`
92 --> $DIR/lint-type-overflow.rs:40:13
94 LL | let x = 9223372036854775808_i64;
95 | ^^^^^^^^^^^^^^^^^^^^^^^
97 error: literal out of range for `i64`
98 --> $DIR/lint-type-overflow.rs:42:13
100 LL | let x = 18446744073709551615_i64;
101 | ^^^^^^^^^^^^^^^^^^^^^^^^
103 error: literal out of range for `i64`
104 --> $DIR/lint-type-overflow.rs:43:19
106 LL | let x: i64 = -9223372036854775809;
107 | ^^^^^^^^^^^^^^^^^^^
109 error: literal out of range for `i64`
110 --> $DIR/lint-type-overflow.rs:44:14
112 LL | let x = -9223372036854775809_i64;
113 | ^^^^^^^^^^^^^^^^^^^^^^^
115 error: aborting due to 18 previous errors