1 error: literal out of range for `u8`
2 --> $DIR/lint-type-overflow.rs:10:18
7 note: the lint level is defined here
8 --> $DIR/lint-type-overflow.rs:1:9
10 LL | #![deny(overflowing_literals)]
11 | ^^^^^^^^^^^^^^^^^^^^
12 = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
14 error: literal out of range for `u8`
15 --> $DIR/lint-type-overflow.rs:13:14
20 = note: the literal `256_u8` does not fit into the type `u8` whose range is `0..=255`
22 error: literal out of range for `i8`
23 --> $DIR/lint-type-overflow.rs:16:18
25 LL | let x1: i8 = 128;
28 = note: the literal `128` does not fit into the type `i8` whose range is `-128..=127`
30 error: literal out of range for `i8`
31 --> $DIR/lint-type-overflow.rs:18:19
33 LL | let x3: i8 = -129;
36 = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
38 error: literal out of range for `i8`
39 --> $DIR/lint-type-overflow.rs:19:19
41 LL | let x3: i8 = -(129);
44 = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
46 error: literal out of range for `i8`
47 --> $DIR/lint-type-overflow.rs:20:20
49 LL | let x3: i8 = -{129};
52 = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
54 error: literal out of range for `i8`
55 --> $DIR/lint-type-overflow.rs:22:10
60 = note: the literal `1000` does not fit into the type `i8` whose range is `-128..=127`
62 error: literal out of range for `i8`
63 --> $DIR/lint-type-overflow.rs:24:13
68 = note: the literal `128_i8` does not fit into the type `i8` whose range is `-128..=127`
70 error: literal out of range for `i8`
71 --> $DIR/lint-type-overflow.rs:28:14
76 = note: the literal `129_i8` does not fit into the type `i8` whose range is `-128..=127`
78 error: literal out of range for `i32`
79 --> $DIR/lint-type-overflow.rs:32:18
81 LL | let x: i32 = 2147483648;
84 = note: the literal `2147483648` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
86 error: literal out of range for `i32`
87 --> $DIR/lint-type-overflow.rs:33:13
89 LL | let x = 2147483648_i32;
92 = note: the literal `2147483648_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
94 error: literal out of range for `i32`
95 --> $DIR/lint-type-overflow.rs:36:19
97 LL | let x: i32 = -2147483649;
100 = note: the literal `2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
102 error: literal out of range for `i32`
103 --> $DIR/lint-type-overflow.rs:37:14
105 LL | let x = -2147483649_i32;
108 = note: the literal `2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
110 error: literal out of range for `i32`
111 --> $DIR/lint-type-overflow.rs:38:13
113 LL | let x = 2147483648;
116 = note: the literal `2147483648` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
118 error: literal out of range for `i64`
119 --> $DIR/lint-type-overflow.rs:40:13
121 LL | let x = 9223372036854775808_i64;
122 | ^^^^^^^^^^^^^^^^^^^^^^^
124 = note: the literal `9223372036854775808_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
126 error: literal out of range for `i64`
127 --> $DIR/lint-type-overflow.rs:42:13
129 LL | let x = 18446744073709551615_i64;
130 | ^^^^^^^^^^^^^^^^^^^^^^^^
132 = note: the literal `18446744073709551615_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
134 error: literal out of range for `i64`
135 --> $DIR/lint-type-overflow.rs:43:19
137 LL | let x: i64 = -9223372036854775809;
138 | ^^^^^^^^^^^^^^^^^^^
140 = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
142 error: literal out of range for `i64`
143 --> $DIR/lint-type-overflow.rs:44:14
145 LL | let x = -9223372036854775809_i64;
146 | ^^^^^^^^^^^^^^^^^^^^^^^
148 = note: the literal `9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
150 error: aborting due to 18 previous errors