@@ -29,21 +29,21 @@ LL | let x1: i8 = 128;
29
29
= help: consider using the type `u8` instead
30
30
31
31
error: literal out of range for `i8`
32
- --> $DIR/lint-type-overflow.rs:18:19
32
+ --> $DIR/lint-type-overflow.rs:18:18
33
33
|
34
34
LL | let x3: i8 = -129;
35
- | ^^^
35
+ | ^ ^^^
36
36
|
37
- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
37
+ = note: the literal `- 129` does not fit into the type `i8` whose range is `-128..=127`
38
38
= help: consider using the type `i16` instead
39
39
40
40
error: literal out of range for `i8`
41
- --> $DIR/lint-type-overflow.rs:19:19
41
+ --> $DIR/lint-type-overflow.rs:19:18
42
42
|
43
43
LL | let x3: i8 = -(129);
44
- | ^^^^^
44
+ | ^ ^^^^^
45
45
|
46
- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
46
+ = note: the literal `-( 129) ` does not fit into the type `i8` whose range is `-128..=127`
47
47
= help: consider using the type `i16` instead
48
48
49
49
error: literal out of range for `i8`
@@ -74,12 +74,12 @@ LL | let x = 128_i8;
74
74
= help: consider using the type `u8` instead
75
75
76
76
error: literal out of range for `i8`
77
- --> $DIR/lint-type-overflow.rs:28:14
77
+ --> $DIR/lint-type-overflow.rs:28:13
78
78
|
79
79
LL | let x = -129_i8;
80
- | ^^^^^^
80
+ | ^ ^^^^^^
81
81
|
82
- = note: the literal `129_i8` does not fit into the type `i8` whose range is `-128..=127`
82
+ = note: the literal `- 129_i8` does not fit into the type `i8` whose range is `-128..=127`
83
83
= help: consider using the type `i16` instead
84
84
85
85
error: literal out of range for `i32`
@@ -101,21 +101,21 @@ LL | let x = 2147483648_i32;
101
101
= help: consider using the type `u32` instead
102
102
103
103
error: literal out of range for `i32`
104
- --> $DIR/lint-type-overflow.rs:36:19
104
+ --> $DIR/lint-type-overflow.rs:36:18
105
105
|
106
106
LL | let x: i32 = -2147483649;
107
- | ^^^^^^^^^^
107
+ | ^ ^^^^^^^^^^
108
108
|
109
- = note: the literal `2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
109
+ = note: the literal `- 2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
110
110
= help: consider using the type `i64` instead
111
111
112
112
error: literal out of range for `i32`
113
- --> $DIR/lint-type-overflow.rs:37:14
113
+ --> $DIR/lint-type-overflow.rs:37:13
114
114
|
115
115
LL | let x = -2147483649_i32;
116
- | ^^^^^^^^^^^^^^
116
+ | ^ ^^^^^^^^^^^^^^
117
117
|
118
- = note: the literal `2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
118
+ = note: the literal `- 2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
119
119
= help: consider using the type `i64` instead
120
120
121
121
error: literal out of range for `i32`
@@ -146,21 +146,21 @@ LL | let x = 18446744073709551615_i64;
146
146
= help: consider using the type `u64` instead
147
147
148
148
error: literal out of range for `i64`
149
- --> $DIR/lint-type-overflow.rs:43:19
149
+ --> $DIR/lint-type-overflow.rs:43:18
150
150
|
151
151
LL | let x: i64 = -9223372036854775809;
152
- | ^^^^^^^^^^^^^^^^^^^
152
+ | ^ ^^^^^^^^^^^^^^^^^^^
153
153
|
154
- = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
154
+ = note: the literal `- 9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
155
155
= help: consider using the type `i128` instead
156
156
157
157
error: literal out of range for `i64`
158
- --> $DIR/lint-type-overflow.rs:44:14
158
+ --> $DIR/lint-type-overflow.rs:44:13
159
159
|
160
160
LL | let x = -9223372036854775809_i64;
161
- | ^^^^^^^^^^^^^^^^^^^^^^^
161
+ | ^ ^^^^^^^^^^^^^^^^^^^^^^^
162
162
|
163
- = note: the literal `9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
163
+ = note: the literal `- 9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
164
164
= help: consider using the type `i128` instead
165
165
166
166
error: aborting due to 18 previous errors
0 commit comments