@@ -258,15 +258,15 @@ LL | mac2!(0, 1);
258
258
|
259
259
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
260
260
261
- error[E0029]: only char and numeric types are allowed in range patterns
261
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
262
262
--> $DIR/recover-range-pats.rs:20:12
263
263
|
264
264
LL | if let true..Y = 0 {}
265
265
| ^^^^ - this is of type `u8`
266
266
| |
267
267
| this is of type `bool` but it should be `char` or numeric
268
268
269
- error[E0029]: only char and numeric types are allowed in range patterns
269
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
270
270
--> $DIR/recover-range-pats.rs:21:15
271
271
|
272
272
LL | if let X..true = 0 {}
@@ -291,15 +291,15 @@ LL | if let X.. .0 = 0 {}
291
291
| | expected integer, found floating-point number
292
292
| this is of type `u8`
293
293
294
- error[E0029]: only char and numeric types are allowed in range patterns
294
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
295
295
--> $DIR/recover-range-pats.rs:33:12
296
296
|
297
297
LL | if let true..=Y = 0 {}
298
298
| ^^^^ - this is of type `u8`
299
299
| |
300
300
| this is of type `bool` but it should be `char` or numeric
301
301
302
- error[E0029]: only char and numeric types are allowed in range patterns
302
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
303
303
--> $DIR/recover-range-pats.rs:34:16
304
304
|
305
305
LL | if let X..=true = 0 {}
@@ -324,15 +324,15 @@ LL | if let X..=.0 = 0 {}
324
324
| | expected integer, found floating-point number
325
325
| this is of type `u8`
326
326
327
- error[E0029]: only char and numeric types are allowed in range patterns
327
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
328
328
--> $DIR/recover-range-pats.rs:46:12
329
329
|
330
330
LL | if let true...Y = 0 {}
331
331
| ^^^^ - this is of type `u8`
332
332
| |
333
333
| this is of type `bool` but it should be `char` or numeric
334
334
335
- error[E0029]: only char and numeric types are allowed in range patterns
335
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
336
336
--> $DIR/recover-range-pats.rs:48:16
337
337
|
338
338
LL | if let X...true = 0 {}
@@ -357,7 +357,7 @@ LL | if let X... .0 = 0 {}
357
357
| | expected integer, found floating-point number
358
358
| this is of type `u8`
359
359
360
- error[E0029]: only char and numeric types are allowed in range patterns
360
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
361
361
--> $DIR/recover-range-pats.rs:61:12
362
362
|
363
363
LL | if let true.. = 0 {}
@@ -369,7 +369,7 @@ error[E0308]: mismatched types
369
369
LL | if let .0.. = 0 {}
370
370
| ^^ expected integer, found floating-point number
371
371
372
- error[E0029]: only char and numeric types are allowed in range patterns
372
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
373
373
--> $DIR/recover-range-pats.rs:71:12
374
374
|
375
375
LL | if let true..= = 0 {}
@@ -381,7 +381,7 @@ error[E0308]: mismatched types
381
381
LL | if let .0..= = 0 {}
382
382
| ^^ expected integer, found floating-point number
383
383
384
- error[E0029]: only char and numeric types are allowed in range patterns
384
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
385
385
--> $DIR/recover-range-pats.rs:81:12
386
386
|
387
387
LL | if let true... = 0 {}
@@ -393,7 +393,7 @@ error[E0308]: mismatched types
393
393
LL | if let .0... = 0 {}
394
394
| ^^ expected integer, found floating-point number
395
395
396
- error[E0029]: only char and numeric types are allowed in range patterns
396
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
397
397
--> $DIR/recover-range-pats.rs:91:14
398
398
|
399
399
LL | if let ..true = 0 {}
@@ -405,7 +405,7 @@ error[E0308]: mismatched types
405
405
LL | if let .. .0 = 0 {}
406
406
| ^^ expected integer, found floating-point number
407
407
408
- error[E0029]: only char and numeric types are allowed in range patterns
408
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
409
409
--> $DIR/recover-range-pats.rs:101:15
410
410
|
411
411
LL | if let ..=true = 0 {}
@@ -417,7 +417,7 @@ error[E0308]: mismatched types
417
417
LL | if let ..=.0 = 0 {}
418
418
| ^^ expected integer, found floating-point number
419
419
420
- error[E0029]: only char and numeric types are allowed in range patterns
420
+ error[E0029]: only ` char` and numeric types are allowed in range patterns
421
421
--> $DIR/recover-range-pats.rs:113:15
422
422
|
423
423
LL | if let ...true = 0 {}
0 commit comments