@@ -4,59 +4,39 @@ error[E0308]: mismatched types
4
4
LL | x_usize > -1_isize;
5
5
| ^^^^^^^^ expected `usize`, found `isize`
6
6
|
7
- note: `-1_isize` cannot fit into type `usize`
8
- --> $DIR/numeric-cast-no-fix.rs:10:15
9
- |
10
- LL | x_usize > -1_isize;
11
- | ^^^^^^^^
7
+ = note: `-1_isize` cannot fit into type `usize`
12
8
13
9
error[E0308]: mismatched types
14
10
--> $DIR/numeric-cast-no-fix.rs:12:14
15
11
|
16
12
LL | x_u128 > -1_isize;
17
13
| ^^^^^^^^ expected `u128`, found `isize`
18
14
|
19
- note: `-1_isize` cannot fit into type `u128`
20
- --> $DIR/numeric-cast-no-fix.rs:12:14
21
- |
22
- LL | x_u128 > -1_isize;
23
- | ^^^^^^^^
15
+ = note: `-1_isize` cannot fit into type `u128`
24
16
25
17
error[E0308]: mismatched types
26
18
--> $DIR/numeric-cast-no-fix.rs:14:13
27
19
|
28
20
LL | x_u64 > -1_isize;
29
21
| ^^^^^^^^ expected `u64`, found `isize`
30
22
|
31
- note: `-1_isize` cannot fit into type `u64`
32
- --> $DIR/numeric-cast-no-fix.rs:14:13
33
- |
34
- LL | x_u64 > -1_isize;
35
- | ^^^^^^^^
23
+ = note: `-1_isize` cannot fit into type `u64`
36
24
37
25
error[E0308]: mismatched types
38
26
--> $DIR/numeric-cast-no-fix.rs:16:13
39
27
|
40
28
LL | x_u32 > -1_isize;
41
29
| ^^^^^^^^ expected `u32`, found `isize`
42
30
|
43
- note: `-1_isize` cannot fit into type `u32`
44
- --> $DIR/numeric-cast-no-fix.rs:16:13
45
- |
46
- LL | x_u32 > -1_isize;
47
- | ^^^^^^^^
31
+ = note: `-1_isize` cannot fit into type `u32`
48
32
49
33
error[E0308]: mismatched types
50
34
--> $DIR/numeric-cast-no-fix.rs:18:13
51
35
|
52
36
LL | x_u16 > -1_isize;
53
37
| ^^^^^^^^ expected `u16`, found `isize`
54
38
|
55
- note: `-1_isize` cannot fit into type `u16`
56
- --> $DIR/numeric-cast-no-fix.rs:18:13
57
- |
58
- LL | x_u16 > -1_isize;
59
- | ^^^^^^^^
39
+ = note: `-1_isize` cannot fit into type `u16`
60
40
61
41
error[E0308]: mismatched types
62
42
--> $DIR/numeric-cast-no-fix.rs:20:12
@@ -75,23 +55,15 @@ error[E0308]: mismatched types
75
55
LL | x_usize > -1_i128;
76
56
| ^^^^^^^ expected `usize`, found `i128`
77
57
|
78
- note: `-1_i128` cannot fit into type `usize`
79
- --> $DIR/numeric-cast-no-fix.rs:23:15
80
- |
81
- LL | x_usize > -1_i128;
82
- | ^^^^^^^
58
+ = note: `-1_i128` cannot fit into type `usize`
83
59
84
60
error[E0308]: mismatched types
85
61
--> $DIR/numeric-cast-no-fix.rs:25:14
86
62
|
87
63
LL | x_u128 > -1_i128;
88
64
| ^^^^^^^ expected `u128`, found `i128`
89
65
|
90
- note: `-1_i128` cannot fit into type `u128`
91
- --> $DIR/numeric-cast-no-fix.rs:25:14
92
- |
93
- LL | x_u128 > -1_i128;
94
- | ^^^^^^^
66
+ = note: `-1_i128` cannot fit into type `u128`
95
67
96
68
error[E0308]: mismatched types
97
69
--> $DIR/numeric-cast-no-fix.rs:27:13
@@ -143,35 +115,23 @@ error[E0308]: mismatched types
143
115
LL | x_usize > -1_i64;
144
116
| ^^^^^^ expected `usize`, found `i64`
145
117
|
146
- note: `-1_i64` cannot fit into type `usize`
147
- --> $DIR/numeric-cast-no-fix.rs:36:15
148
- |
149
- LL | x_usize > -1_i64;
150
- | ^^^^^^
118
+ = note: `-1_i64` cannot fit into type `usize`
151
119
152
120
error[E0308]: mismatched types
153
121
--> $DIR/numeric-cast-no-fix.rs:38:14
154
122
|
155
123
LL | x_u128 > -1_i64;
156
124
| ^^^^^^ expected `u128`, found `i64`
157
125
|
158
- note: `-1_i64` cannot fit into type `u128`
159
- --> $DIR/numeric-cast-no-fix.rs:38:14
160
- |
161
- LL | x_u128 > -1_i64;
162
- | ^^^^^^
126
+ = note: `-1_i64` cannot fit into type `u128`
163
127
164
128
error[E0308]: mismatched types
165
129
--> $DIR/numeric-cast-no-fix.rs:40:13
166
130
|
167
131
LL | x_u64 > -1_i64;
168
132
| ^^^^^^ expected `u64`, found `i64`
169
133
|
170
- note: `-1_i64` cannot fit into type `u64`
171
- --> $DIR/numeric-cast-no-fix.rs:40:13
172
- |
173
- LL | x_u64 > -1_i64;
174
- | ^^^^^^
134
+ = note: `-1_i64` cannot fit into type `u64`
175
135
176
136
error[E0308]: mismatched types
177
137
--> $DIR/numeric-cast-no-fix.rs:42:13
@@ -212,47 +172,31 @@ error[E0308]: mismatched types
212
172
LL | x_usize > -1_i32;
213
173
| ^^^^^^ expected `usize`, found `i32`
214
174
|
215
- note: `-1_i32` cannot fit into type `usize`
216
- --> $DIR/numeric-cast-no-fix.rs:49:15
217
- |
218
- LL | x_usize > -1_i32;
219
- | ^^^^^^
175
+ = note: `-1_i32` cannot fit into type `usize`
220
176
221
177
error[E0308]: mismatched types
222
178
--> $DIR/numeric-cast-no-fix.rs:51:14
223
179
|
224
180
LL | x_u128 > -1_i32;
225
181
| ^^^^^^ expected `u128`, found `i32`
226
182
|
227
- note: `-1_i32` cannot fit into type `u128`
228
- --> $DIR/numeric-cast-no-fix.rs:51:14
229
- |
230
- LL | x_u128 > -1_i32;
231
- | ^^^^^^
183
+ = note: `-1_i32` cannot fit into type `u128`
232
184
233
185
error[E0308]: mismatched types
234
186
--> $DIR/numeric-cast-no-fix.rs:53:13
235
187
|
236
188
LL | x_u64 > -1_i32;
237
189
| ^^^^^^ expected `u64`, found `i32`
238
190
|
239
- note: `-1_i32` cannot fit into type `u64`
240
- --> $DIR/numeric-cast-no-fix.rs:53:13
241
- |
242
- LL | x_u64 > -1_i32;
243
- | ^^^^^^
191
+ = note: `-1_i32` cannot fit into type `u64`
244
192
245
193
error[E0308]: mismatched types
246
194
--> $DIR/numeric-cast-no-fix.rs:55:13
247
195
|
248
196
LL | x_u32 > -1_i32;
249
197
| ^^^^^^ expected `u32`, found `i32`
250
198
|
251
- note: `-1_i32` cannot fit into type `u32`
252
- --> $DIR/numeric-cast-no-fix.rs:55:13
253
- |
254
- LL | x_u32 > -1_i32;
255
- | ^^^^^^
199
+ = note: `-1_i32` cannot fit into type `u32`
256
200
257
201
error[E0308]: mismatched types
258
202
--> $DIR/numeric-cast-no-fix.rs:57:13
@@ -282,59 +226,39 @@ error[E0308]: mismatched types
282
226
LL | x_usize > -1_i16;
283
227
| ^^^^^^ expected `usize`, found `i16`
284
228
|
285
- note: `-1_i16` cannot fit into type `usize`
286
- --> $DIR/numeric-cast-no-fix.rs:62:15
287
- |
288
- LL | x_usize > -1_i16;
289
- | ^^^^^^
229
+ = note: `-1_i16` cannot fit into type `usize`
290
230
291
231
error[E0308]: mismatched types
292
232
--> $DIR/numeric-cast-no-fix.rs:64:14
293
233
|
294
234
LL | x_u128 > -1_i16;
295
235
| ^^^^^^ expected `u128`, found `i16`
296
236
|
297
- note: `-1_i16` cannot fit into type `u128`
298
- --> $DIR/numeric-cast-no-fix.rs:64:14
299
- |
300
- LL | x_u128 > -1_i16;
301
- | ^^^^^^
237
+ = note: `-1_i16` cannot fit into type `u128`
302
238
303
239
error[E0308]: mismatched types
304
240
--> $DIR/numeric-cast-no-fix.rs:66:13
305
241
|
306
242
LL | x_u64 > -1_i16;
307
243
| ^^^^^^ expected `u64`, found `i16`
308
244
|
309
- note: `-1_i16` cannot fit into type `u64`
310
- --> $DIR/numeric-cast-no-fix.rs:66:13
311
- |
312
- LL | x_u64 > -1_i16;
313
- | ^^^^^^
245
+ = note: `-1_i16` cannot fit into type `u64`
314
246
315
247
error[E0308]: mismatched types
316
248
--> $DIR/numeric-cast-no-fix.rs:68:13
317
249
|
318
250
LL | x_u32 > -1_i16;
319
251
| ^^^^^^ expected `u32`, found `i16`
320
252
|
321
- note: `-1_i16` cannot fit into type `u32`
322
- --> $DIR/numeric-cast-no-fix.rs:68:13
323
- |
324
- LL | x_u32 > -1_i16;
325
- | ^^^^^^
253
+ = note: `-1_i16` cannot fit into type `u32`
326
254
327
255
error[E0308]: mismatched types
328
256
--> $DIR/numeric-cast-no-fix.rs:70:13
329
257
|
330
258
LL | x_u16 > -1_i16;
331
259
| ^^^^^^ expected `u16`, found `i16`
332
260
|
333
- note: `-1_i16` cannot fit into type `u16`
334
- --> $DIR/numeric-cast-no-fix.rs:70:13
335
- |
336
- LL | x_u16 > -1_i16;
337
- | ^^^^^^
261
+ = note: `-1_i16` cannot fit into type `u16`
338
262
339
263
error[E0308]: mismatched types
340
264
--> $DIR/numeric-cast-no-fix.rs:72:12
@@ -353,71 +277,47 @@ error[E0308]: mismatched types
353
277
LL | x_usize > -1_i8;
354
278
| ^^^^^ expected `usize`, found `i8`
355
279
|
356
- note: `-1_i8` cannot fit into type `usize`
357
- --> $DIR/numeric-cast-no-fix.rs:75:15
358
- |
359
- LL | x_usize > -1_i8;
360
- | ^^^^^
280
+ = note: `-1_i8` cannot fit into type `usize`
361
281
362
282
error[E0308]: mismatched types
363
283
--> $DIR/numeric-cast-no-fix.rs:77:14
364
284
|
365
285
LL | x_u128 > -1_i8;
366
286
| ^^^^^ expected `u128`, found `i8`
367
287
|
368
- note: `-1_i8` cannot fit into type `u128`
369
- --> $DIR/numeric-cast-no-fix.rs:77:14
370
- |
371
- LL | x_u128 > -1_i8;
372
- | ^^^^^
288
+ = note: `-1_i8` cannot fit into type `u128`
373
289
374
290
error[E0308]: mismatched types
375
291
--> $DIR/numeric-cast-no-fix.rs:79:13
376
292
|
377
293
LL | x_u64 > -1_i8;
378
294
| ^^^^^ expected `u64`, found `i8`
379
295
|
380
- note: `-1_i8` cannot fit into type `u64`
381
- --> $DIR/numeric-cast-no-fix.rs:79:13
382
- |
383
- LL | x_u64 > -1_i8;
384
- | ^^^^^
296
+ = note: `-1_i8` cannot fit into type `u64`
385
297
386
298
error[E0308]: mismatched types
387
299
--> $DIR/numeric-cast-no-fix.rs:81:13
388
300
|
389
301
LL | x_u32 > -1_i8;
390
302
| ^^^^^ expected `u32`, found `i8`
391
303
|
392
- note: `-1_i8` cannot fit into type `u32`
393
- --> $DIR/numeric-cast-no-fix.rs:81:13
394
- |
395
- LL | x_u32 > -1_i8;
396
- | ^^^^^
304
+ = note: `-1_i8` cannot fit into type `u32`
397
305
398
306
error[E0308]: mismatched types
399
307
--> $DIR/numeric-cast-no-fix.rs:83:13
400
308
|
401
309
LL | x_u16 > -1_i8;
402
310
| ^^^^^ expected `u16`, found `i8`
403
311
|
404
- note: `-1_i8` cannot fit into type `u16`
405
- --> $DIR/numeric-cast-no-fix.rs:83:13
406
- |
407
- LL | x_u16 > -1_i8;
408
- | ^^^^^
312
+ = note: `-1_i8` cannot fit into type `u16`
409
313
410
314
error[E0308]: mismatched types
411
315
--> $DIR/numeric-cast-no-fix.rs:85:12
412
316
|
413
317
LL | x_u8 > -1_i8;
414
318
| ^^^^^ expected `u8`, found `i8`
415
319
|
416
- note: `-1_i8` cannot fit into type `u8`
417
- --> $DIR/numeric-cast-no-fix.rs:85:12
418
- |
419
- LL | x_u8 > -1_i8;
420
- | ^^^^^
320
+ = note: `-1_i8` cannot fit into type `u8`
421
321
422
322
error: aborting due to 36 previous errors
423
323
0 commit comments