1 error: float literals must have an integer part
2 --> $DIR/recover-range-pats.rs:21:12
4 LL | if let .0..Y = 0 {}
5 | ^^ help: must have an integer part: `0.0`
7 error: float literals must have an integer part
8 --> $DIR/recover-range-pats.rs:23:16
10 LL | if let X.. .0 = 0 {}
11 | ^^ help: must have an integer part: `0.0`
13 error: float literals must have an integer part
14 --> $DIR/recover-range-pats.rs:34:12
16 LL | if let .0..=Y = 0 {}
17 | ^^ help: must have an integer part: `0.0`
19 error: float literals must have an integer part
20 --> $DIR/recover-range-pats.rs:36:16
22 LL | if let X..=.0 = 0 {}
23 | ^^ help: must have an integer part: `0.0`
25 error: float literals must have an integer part
26 --> $DIR/recover-range-pats.rs:49:12
28 LL | if let .0...Y = 0 {}
29 | ^^ help: must have an integer part: `0.0`
31 error: float literals must have an integer part
32 --> $DIR/recover-range-pats.rs:52:17
34 LL | if let X... .0 = 0 {}
35 | ^^ help: must have an integer part: `0.0`
37 error: `X..` range patterns are not supported
38 --> $DIR/recover-range-pats.rs:58:12
40 LL | if let 0.. = 0 {}
41 | ^^^ help: try using the maximum value for the type: `0..MAX`
43 error: `X..` range patterns are not supported
44 --> $DIR/recover-range-pats.rs:59:12
46 LL | if let X.. = 0 {}
47 | ^^^ help: try using the maximum value for the type: `X..MAX`
49 error: `X..` range patterns are not supported
50 --> $DIR/recover-range-pats.rs:60:12
52 LL | if let true.. = 0 {}
53 | ^^^^^^ help: try using the maximum value for the type: `true..MAX`
55 error: float literals must have an integer part
56 --> $DIR/recover-range-pats.rs:62:12
58 LL | if let .0.. = 0 {}
59 | ^^ help: must have an integer part: `0.0`
61 error: `X..` range patterns are not supported
62 --> $DIR/recover-range-pats.rs:62:12
64 LL | if let .0.. = 0 {}
65 | ^^^^ help: try using the maximum value for the type: `0.0..MAX`
67 error: `X..=` range patterns are not supported
68 --> $DIR/recover-range-pats.rs:68:12
70 LL | if let 0..= = 0 {}
71 | ^^^^ help: try using the maximum value for the type: `0..=MAX`
73 error: `X..=` range patterns are not supported
74 --> $DIR/recover-range-pats.rs:69:12
76 LL | if let X..= = 0 {}
77 | ^^^^ help: try using the maximum value for the type: `X..=MAX`
79 error: `X..=` range patterns are not supported
80 --> $DIR/recover-range-pats.rs:70:12
82 LL | if let true..= = 0 {}
83 | ^^^^^^^ help: try using the maximum value for the type: `true..=MAX`
85 error: float literals must have an integer part
86 --> $DIR/recover-range-pats.rs:72:12
88 LL | if let .0..= = 0 {}
89 | ^^ help: must have an integer part: `0.0`
91 error: `X..=` range patterns are not supported
92 --> $DIR/recover-range-pats.rs:72:12
94 LL | if let .0..= = 0 {}
95 | ^^^^^ help: try using the maximum value for the type: `0.0..=MAX`
97 error: `X...` range patterns are not supported
98 --> $DIR/recover-range-pats.rs:78:12
100 LL | if let 0... = 0 {}
101 | ^^^^ help: try using the maximum value for the type: `0...MAX`
103 error: `X...` range patterns are not supported
104 --> $DIR/recover-range-pats.rs:80:12
106 LL | if let X... = 0 {}
107 | ^^^^ help: try using the maximum value for the type: `X...MAX`
109 error: `X...` range patterns are not supported
110 --> $DIR/recover-range-pats.rs:82:12
112 LL | if let true... = 0 {}
113 | ^^^^^^^ help: try using the maximum value for the type: `true...MAX`
115 error: float literals must have an integer part
116 --> $DIR/recover-range-pats.rs:85:12
118 LL | if let .0... = 0 {}
119 | ^^ help: must have an integer part: `0.0`
121 error: `X...` range patterns are not supported
122 --> $DIR/recover-range-pats.rs:85:12
124 LL | if let .0... = 0 {}
125 | ^^^^^ help: try using the maximum value for the type: `0.0...MAX`
127 error: `..X` range patterns are not supported
128 --> $DIR/recover-range-pats.rs:92:12
130 LL | if let ..0 = 0 {}
131 | ^^^ help: try using the minimum value for the type: `MIN..0`
133 error: `..X` range patterns are not supported
134 --> $DIR/recover-range-pats.rs:93:12
136 LL | if let ..Y = 0 {}
137 | ^^^ help: try using the minimum value for the type: `MIN..Y`
139 error: `..X` range patterns are not supported
140 --> $DIR/recover-range-pats.rs:94:12
142 LL | if let ..true = 0 {}
143 | ^^^^^^ help: try using the minimum value for the type: `MIN..true`
145 error: float literals must have an integer part
146 --> $DIR/recover-range-pats.rs:96:15
148 LL | if let .. .0 = 0 {}
149 | ^^ help: must have an integer part: `0.0`
151 error: `..X` range patterns are not supported
152 --> $DIR/recover-range-pats.rs:96:12
154 LL | if let .. .0 = 0 {}
155 | ^^^^^ help: try using the minimum value for the type: `MIN..0.0`
157 error: `..=X` range patterns are not supported
158 --> $DIR/recover-range-pats.rs:102:12
160 LL | if let ..=3 = 0 {}
161 | ^^^^ help: try using the minimum value for the type: `MIN..=3`
163 error: `..=X` range patterns are not supported
164 --> $DIR/recover-range-pats.rs:103:12
166 LL | if let ..=Y = 0 {}
167 | ^^^^ help: try using the minimum value for the type: `MIN..=Y`
169 error: `..=X` range patterns are not supported
170 --> $DIR/recover-range-pats.rs:104:12
172 LL | if let ..=true = 0 {}
173 | ^^^^^^^ help: try using the minimum value for the type: `MIN..=true`
175 error: float literals must have an integer part
176 --> $DIR/recover-range-pats.rs:106:15
178 LL | if let ..=.0 = 0 {}
179 | ^^ help: must have an integer part: `0.0`
181 error: `..=X` range patterns are not supported
182 --> $DIR/recover-range-pats.rs:106:12
184 LL | if let ..=.0 = 0 {}
185 | ^^^^^ help: try using the minimum value for the type: `MIN..=0.0`
187 error: `...X` range patterns are not supported
188 --> $DIR/recover-range-pats.rs:112:12
190 LL | if let ...3 = 0 {}
191 | ^^^^ help: try using the minimum value for the type: `MIN...3`
193 error: `...X` range patterns are not supported
194 --> $DIR/recover-range-pats.rs:114:12
196 LL | if let ...Y = 0 {}
197 | ^^^^ help: try using the minimum value for the type: `MIN...Y`
199 error: `...X` range patterns are not supported
200 --> $DIR/recover-range-pats.rs:116:12
202 LL | if let ...true = 0 {}
203 | ^^^^^^^ help: try using the minimum value for the type: `MIN...true`
205 error: float literals must have an integer part
206 --> $DIR/recover-range-pats.rs:119:15
208 LL | if let ....3 = 0 {}
209 | ^^ help: must have an integer part: `0.3`
211 error: `...X` range patterns are not supported
212 --> $DIR/recover-range-pats.rs:119:12
214 LL | if let ....3 = 0 {}
215 | ^^^^^ help: try using the minimum value for the type: `MIN...0.3`
217 error: `..X` range patterns are not supported
218 --> $DIR/recover-range-pats.rs:139:17
221 | ^^ help: try using the minimum value for the type: `MIN..0`
224 | -------- in this macro invocation
226 error: `...X` range patterns are not supported
227 --> $DIR/recover-range-pats.rs:140:17
230 | ^^^ help: try using the minimum value for the type: `MIN...0`
233 | -------- in this macro invocation
235 error: `..=X` range patterns are not supported
236 --> $DIR/recover-range-pats.rs:142:17
239 | ^^^ help: try using the minimum value for the type: `MIN..=0`
242 | -------- in this macro invocation
244 error: `X..` range patterns are not supported
245 --> $DIR/recover-range-pats.rs:143:19
248 | ^^ help: try using the maximum value for the type: `0..MAX`
251 | -------- in this macro invocation
253 error: `X...` range patterns are not supported
254 --> $DIR/recover-range-pats.rs:144:19
257 | ^^^ help: try using the maximum value for the type: `0...MAX`
260 | -------- in this macro invocation
262 error: `X..=` range patterns are not supported
263 --> $DIR/recover-range-pats.rs:146:19
266 | ^^^ help: try using the maximum value for the type: `0..=MAX`
269 | -------- in this macro invocation
271 error: `...` range patterns are deprecated
272 --> $DIR/recover-range-pats.rs:41:13
274 LL | if let 0...3 = 0 {}
275 | ^^^ help: use `..=` for an inclusive range
277 note: lint level defined here
278 --> $DIR/recover-range-pats.rs:7:9
280 LL | #![deny(ellipsis_inclusive_range_patterns)]
281 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
283 error: `...` range patterns are deprecated
284 --> $DIR/recover-range-pats.rs:42:13
286 LL | if let 0...Y = 0 {}
287 | ^^^ help: use `..=` for an inclusive range
289 error: `...` range patterns are deprecated
290 --> $DIR/recover-range-pats.rs:43:13
292 LL | if let X...3 = 0 {}
293 | ^^^ help: use `..=` for an inclusive range
295 error: `...` range patterns are deprecated
296 --> $DIR/recover-range-pats.rs:44:13
298 LL | if let X...Y = 0 {}
299 | ^^^ help: use `..=` for an inclusive range
301 error: `...` range patterns are deprecated
302 --> $DIR/recover-range-pats.rs:45:16
304 LL | if let true...Y = 0 {}
305 | ^^^ help: use `..=` for an inclusive range
307 error: `...` range patterns are deprecated
308 --> $DIR/recover-range-pats.rs:47:13
310 LL | if let X...true = 0 {}
311 | ^^^ help: use `..=` for an inclusive range
313 error: `...` range patterns are deprecated
314 --> $DIR/recover-range-pats.rs:49:14
316 LL | if let .0...Y = 0 {}
317 | ^^^ help: use `..=` for an inclusive range
319 error: `...` range patterns are deprecated
320 --> $DIR/recover-range-pats.rs:52:13
322 LL | if let X... .0 = 0 {}
323 | ^^^ help: use `..=` for an inclusive range
325 error: `...` range patterns are deprecated
326 --> $DIR/recover-range-pats.rs:78:13
328 LL | if let 0... = 0 {}
329 | ^^^ help: use `..=` for an inclusive range
331 error: `...` range patterns are deprecated
332 --> $DIR/recover-range-pats.rs:80:13
334 LL | if let X... = 0 {}
335 | ^^^ help: use `..=` for an inclusive range
337 error: `...` range patterns are deprecated
338 --> $DIR/recover-range-pats.rs:82:16
340 LL | if let true... = 0 {}
341 | ^^^ help: use `..=` for an inclusive range
343 error: `...` range patterns are deprecated
344 --> $DIR/recover-range-pats.rs:85:14
346 LL | if let .0... = 0 {}
347 | ^^^ help: use `..=` for an inclusive range
349 error: `...` range patterns are deprecated
350 --> $DIR/recover-range-pats.rs:112:12
352 LL | if let ...3 = 0 {}
353 | ^^^ help: use `..=` for an inclusive range
355 error: `...` range patterns are deprecated
356 --> $DIR/recover-range-pats.rs:114:12
358 LL | if let ...Y = 0 {}
359 | ^^^ help: use `..=` for an inclusive range
361 error: `...` range patterns are deprecated
362 --> $DIR/recover-range-pats.rs:116:12
364 LL | if let ...true = 0 {}
365 | ^^^ help: use `..=` for an inclusive range
367 error: `...` range patterns are deprecated
368 --> $DIR/recover-range-pats.rs:119:12
370 LL | if let ....3 = 0 {}
371 | ^^^ help: use `..=` for an inclusive range
373 error: `...` range patterns are deprecated
374 --> $DIR/recover-range-pats.rs:129:20
377 | ^^^ help: use `..=` for an inclusive range
380 | ------------ in this macro invocation
382 error: `...` range patterns are deprecated
383 --> $DIR/recover-range-pats.rs:140:17
386 | ^^^ help: use `..=` for an inclusive range
389 | -------- in this macro invocation
391 error: `...` range patterns are deprecated
392 --> $DIR/recover-range-pats.rs:144:19
395 | ^^^ help: use `..=` for an inclusive range
398 | -------- in this macro invocation
400 error[E0029]: only char and numeric types are allowed in range patterns
401 --> $DIR/recover-range-pats.rs:19:12
403 LL | if let true..Y = 0 {}
404 | ^^^^ - this is of type `u8`
406 | this is of type `bool` but it should be `char` or numeric
408 error[E0029]: only char and numeric types are allowed in range patterns
409 --> $DIR/recover-range-pats.rs:20:15
411 LL | if let X..true = 0 {}
412 | - ^^^^ this is of type `bool` but it should be `char` or numeric
414 | this is of type `u8`
416 error[E0308]: mismatched types
417 --> $DIR/recover-range-pats.rs:21:12
419 LL | if let .0..Y = 0 {}
420 | ^^^^^ expected integer, found floating-point number
422 error[E0308]: mismatched types
423 --> $DIR/recover-range-pats.rs:23:12
425 LL | if let X.. .0 = 0 {}
426 | ^^^^^^ expected integer, found floating-point number
428 error[E0029]: only char and numeric types are allowed in range patterns
429 --> $DIR/recover-range-pats.rs:32:12
431 LL | if let true..=Y = 0 {}
432 | ^^^^ - this is of type `u8`
434 | this is of type `bool` but it should be `char` or numeric
436 error[E0029]: only char and numeric types are allowed in range patterns
437 --> $DIR/recover-range-pats.rs:33:16
439 LL | if let X..=true = 0 {}
440 | - ^^^^ this is of type `bool` but it should be `char` or numeric
442 | this is of type `u8`
444 error[E0308]: mismatched types
445 --> $DIR/recover-range-pats.rs:34:12
447 LL | if let .0..=Y = 0 {}
448 | ^^^^^^ expected integer, found floating-point number
450 error[E0308]: mismatched types
451 --> $DIR/recover-range-pats.rs:36:12
453 LL | if let X..=.0 = 0 {}
454 | ^^^^^^ expected integer, found floating-point number
456 error[E0029]: only char and numeric types are allowed in range patterns
457 --> $DIR/recover-range-pats.rs:45:12
459 LL | if let true...Y = 0 {}
460 | ^^^^ - this is of type `u8`
462 | this is of type `bool` but it should be `char` or numeric
464 error[E0029]: only char and numeric types are allowed in range patterns
465 --> $DIR/recover-range-pats.rs:47:16
467 LL | if let X...true = 0 {}
468 | - ^^^^ this is of type `bool` but it should be `char` or numeric
470 | this is of type `u8`
472 error[E0308]: mismatched types
473 --> $DIR/recover-range-pats.rs:49:12
475 LL | if let .0...Y = 0 {}
476 | ^^^^^^ expected integer, found floating-point number
478 error[E0308]: mismatched types
479 --> $DIR/recover-range-pats.rs:52:12
481 LL | if let X... .0 = 0 {}
482 | ^^^^^^^ expected integer, found floating-point number
484 error[E0029]: only char and numeric types are allowed in range patterns
485 --> $DIR/recover-range-pats.rs:60:12
487 LL | if let true.. = 0 {}
488 | ^^^^ this is of type `bool` but it should be `char` or numeric
490 error[E0308]: mismatched types
491 --> $DIR/recover-range-pats.rs:62:12
493 LL | if let .0.. = 0 {}
494 | ^^^^ expected integer, found floating-point number
496 error[E0029]: only char and numeric types are allowed in range patterns
497 --> $DIR/recover-range-pats.rs:70:12
499 LL | if let true..= = 0 {}
500 | ^^^^ this is of type `bool` but it should be `char` or numeric
502 error[E0308]: mismatched types
503 --> $DIR/recover-range-pats.rs:72:12
505 LL | if let .0..= = 0 {}
506 | ^^^^^ expected integer, found floating-point number
508 error[E0029]: only char and numeric types are allowed in range patterns
509 --> $DIR/recover-range-pats.rs:82:12
511 LL | if let true... = 0 {}
512 | ^^^^ this is of type `bool` but it should be `char` or numeric
514 error[E0308]: mismatched types
515 --> $DIR/recover-range-pats.rs:85:12
517 LL | if let .0... = 0 {}
518 | ^^^^^ expected integer, found floating-point number
520 error[E0029]: only char and numeric types are allowed in range patterns
521 --> $DIR/recover-range-pats.rs:94:14
523 LL | if let ..true = 0 {}
524 | ^^^^ this is of type `bool` but it should be `char` or numeric
526 error[E0308]: mismatched types
527 --> $DIR/recover-range-pats.rs:96:12
529 LL | if let .. .0 = 0 {}
530 | ^^^^^ expected integer, found floating-point number
532 error[E0029]: only char and numeric types are allowed in range patterns
533 --> $DIR/recover-range-pats.rs:104:15
535 LL | if let ..=true = 0 {}
536 | ^^^^ this is of type `bool` but it should be `char` or numeric
538 error[E0308]: mismatched types
539 --> $DIR/recover-range-pats.rs:106:12
541 LL | if let ..=.0 = 0 {}
542 | ^^^^^ expected integer, found floating-point number
544 error[E0029]: only char and numeric types are allowed in range patterns
545 --> $DIR/recover-range-pats.rs:116:15
547 LL | if let ...true = 0 {}
548 | ^^^^ this is of type `bool` but it should be `char` or numeric
550 error[E0308]: mismatched types
551 --> $DIR/recover-range-pats.rs:119:12
553 LL | if let ....3 = 0 {}
554 | ^^^^^ expected integer, found floating-point number
556 error: aborting due to 85 previous errors
558 Some errors have detailed explanations: E0029, E0308.
559 For more information about an error, try `rustc --explain E0029`.