1 error: float literals must have an integer part
2 --> $DIR/recover-range-pats.rs:22: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:24: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:35: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:37: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:60: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:64:17
34 LL | if let X... .0 = 0 {}
35 | ^^ help: must have an integer part: `0.0`
37 error: float literals must have an integer part
38 --> $DIR/recover-range-pats.rs:75:12
40 LL | if let .0.. = 0 {}
41 | ^^ help: must have an integer part: `0.0`
43 error[E0586]: inclusive range with no end
44 --> $DIR/recover-range-pats.rs:81:13
46 LL | if let 0..= = 0 {}
47 | ^^^ help: use `..` instead
49 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
51 error[E0586]: inclusive range with no end
52 --> $DIR/recover-range-pats.rs:82:13
54 LL | if let X..= = 0 {}
55 | ^^^ help: use `..` instead
57 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
59 error[E0586]: inclusive range with no end
60 --> $DIR/recover-range-pats.rs:83:16
62 LL | if let true..= = 0 {}
63 | ^^^ help: use `..` instead
65 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
67 error: float literals must have an integer part
68 --> $DIR/recover-range-pats.rs:85:12
70 LL | if let .0..= = 0 {}
71 | ^^ help: must have an integer part: `0.0`
73 error[E0586]: inclusive range with no end
74 --> $DIR/recover-range-pats.rs:85:14
76 LL | if let .0..= = 0 {}
77 | ^^^ help: use `..` instead
79 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
81 error[E0586]: inclusive range with no end
82 --> $DIR/recover-range-pats.rs:91:13
84 LL | if let 0... = 0 {}
85 | ^^^ help: use `..` instead
87 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
89 error[E0586]: inclusive range with no end
90 --> $DIR/recover-range-pats.rs:92:13
92 LL | if let X... = 0 {}
93 | ^^^ help: use `..` instead
95 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
97 error[E0586]: inclusive range with no end
98 --> $DIR/recover-range-pats.rs:93:16
100 LL | if let true... = 0 {}
101 | ^^^ help: use `..` instead
103 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
105 error: float literals must have an integer part
106 --> $DIR/recover-range-pats.rs:95:12
108 LL | if let .0... = 0 {}
109 | ^^ help: must have an integer part: `0.0`
111 error[E0586]: inclusive range with no end
112 --> $DIR/recover-range-pats.rs:95:14
114 LL | if let .0... = 0 {}
115 | ^^^ help: use `..` instead
117 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
119 error: float literals must have an integer part
120 --> $DIR/recover-range-pats.rs:105:15
122 LL | if let .. .0 = 0 {}
123 | ^^ help: must have an integer part: `0.0`
125 error: float literals must have an integer part
126 --> $DIR/recover-range-pats.rs:115:15
128 LL | if let ..=.0 = 0 {}
129 | ^^ help: must have an integer part: `0.0`
131 error: range-to patterns with `...` are not allowed
132 --> $DIR/recover-range-pats.rs:121:12
134 LL | if let ...3 = 0 {}
135 | ^^^ help: use `..=` instead
137 error: range-to patterns with `...` are not allowed
138 --> $DIR/recover-range-pats.rs:123:12
140 LL | if let ...Y = 0 {}
141 | ^^^ help: use `..=` instead
143 error: range-to patterns with `...` are not allowed
144 --> $DIR/recover-range-pats.rs:125:12
146 LL | if let ...true = 0 {}
147 | ^^^ help: use `..=` instead
149 error: float literals must have an integer part
150 --> $DIR/recover-range-pats.rs:128:15
152 LL | if let ....3 = 0 {}
153 | ^^ help: must have an integer part: `0.3`
155 error: range-to patterns with `...` are not allowed
156 --> $DIR/recover-range-pats.rs:128:12
158 LL | if let ....3 = 0 {}
159 | ^^^ help: use `..=` instead
161 error: range-to patterns with `...` are not allowed
162 --> $DIR/recover-range-pats.rs:150:17
165 | ^^^ help: use `..=` instead
168 | ------- in this macro invocation
170 = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
172 error[E0586]: inclusive range with no end
173 --> $DIR/recover-range-pats.rs:154:19
176 | ^^^ help: use `..` instead
179 | ------- in this macro invocation
181 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
182 = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
184 error[E0586]: inclusive range with no end
185 --> $DIR/recover-range-pats.rs:155:19
188 | ^^^ help: use `..` instead
191 | ------- in this macro invocation
193 = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
194 = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
196 error: `...` range patterns are deprecated
197 --> $DIR/recover-range-pats.rs:42:13
199 LL | if let 0...3 = 0 {}
200 | ^^^ help: use `..=` for an inclusive range
202 note: the lint level is defined here
203 --> $DIR/recover-range-pats.rs:8:9
205 LL | #![deny(ellipsis_inclusive_range_patterns)]
206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
208 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
210 error: `...` range patterns are deprecated
211 --> $DIR/recover-range-pats.rs:45:13
213 LL | if let 0...Y = 0 {}
214 | ^^^ help: use `..=` for an inclusive range
216 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
217 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
219 error: `...` range patterns are deprecated
220 --> $DIR/recover-range-pats.rs:48:13
222 LL | if let X...3 = 0 {}
223 | ^^^ help: use `..=` for an inclusive range
225 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
226 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
228 error: `...` range patterns are deprecated
229 --> $DIR/recover-range-pats.rs:51:13
231 LL | if let X...Y = 0 {}
232 | ^^^ help: use `..=` for an inclusive range
234 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
235 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
237 error: `...` range patterns are deprecated
238 --> $DIR/recover-range-pats.rs:54:16
240 LL | if let true...Y = 0 {}
241 | ^^^ help: use `..=` for an inclusive range
243 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
244 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
246 error: `...` range patterns are deprecated
247 --> $DIR/recover-range-pats.rs:57:13
249 LL | if let X...true = 0 {}
250 | ^^^ help: use `..=` for an inclusive range
252 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
253 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
255 error: `...` range patterns are deprecated
256 --> $DIR/recover-range-pats.rs:60:14
258 LL | if let .0...Y = 0 {}
259 | ^^^ help: use `..=` for an inclusive range
261 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
262 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
264 error: `...` range patterns are deprecated
265 --> $DIR/recover-range-pats.rs:64:13
267 LL | if let X... .0 = 0 {}
268 | ^^^ help: use `..=` for an inclusive range
270 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
271 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
273 error: `...` range patterns are deprecated
274 --> $DIR/recover-range-pats.rs:138:20
277 | ^^^ help: use `..=` for an inclusive range
280 | ----------- in this macro invocation
282 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
283 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
284 = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
286 error[E0029]: only `char` and numeric types are allowed in range patterns
287 --> $DIR/recover-range-pats.rs:20:12
289 LL | if let true..Y = 0 {}
290 | ^^^^ - this is of type `u8`
292 | this is of type `bool` but it should be `char` or numeric
294 error[E0029]: only `char` and numeric types are allowed in range patterns
295 --> $DIR/recover-range-pats.rs:21:15
297 LL | if let X..true = 0 {}
298 | - ^^^^ this is of type `bool` but it should be `char` or numeric
300 | this is of type `u8`
302 error[E0308]: mismatched types
303 --> $DIR/recover-range-pats.rs:22:12
305 LL | if let .0..Y = 0 {}
306 | ^^ - - this expression has type `{integer}`
308 | | this is of type `u8`
309 | expected integer, found floating-point number
311 error[E0308]: mismatched types
312 --> $DIR/recover-range-pats.rs:24:16
314 LL | if let X.. .0 = 0 {}
315 | - ^^ - this expression has type `u8`
317 | | expected integer, found floating-point number
318 | this is of type `u8`
320 = note: expected type `u8`
323 error[E0029]: only `char` and numeric types are allowed in range patterns
324 --> $DIR/recover-range-pats.rs:33:12
326 LL | if let true..=Y = 0 {}
327 | ^^^^ - this is of type `u8`
329 | this is of type `bool` but it should be `char` or numeric
331 error[E0029]: only `char` and numeric types are allowed in range patterns
332 --> $DIR/recover-range-pats.rs:34:16
334 LL | if let X..=true = 0 {}
335 | - ^^^^ this is of type `bool` but it should be `char` or numeric
337 | this is of type `u8`
339 error[E0308]: mismatched types
340 --> $DIR/recover-range-pats.rs:35:12
342 LL | if let .0..=Y = 0 {}
343 | ^^ - - this expression has type `{integer}`
345 | | this is of type `u8`
346 | expected integer, found floating-point number
348 error[E0308]: mismatched types
349 --> $DIR/recover-range-pats.rs:37:16
351 LL | if let X..=.0 = 0 {}
352 | - ^^ - this expression has type `u8`
354 | | expected integer, found floating-point number
355 | this is of type `u8`
357 = note: expected type `u8`
360 error[E0029]: only `char` and numeric types are allowed in range patterns
361 --> $DIR/recover-range-pats.rs:54:12
363 LL | if let true...Y = 0 {}
364 | ^^^^ - this is of type `u8`
366 | this is of type `bool` but it should be `char` or numeric
368 error[E0029]: only `char` and numeric types are allowed in range patterns
369 --> $DIR/recover-range-pats.rs:57:16
371 LL | if let X...true = 0 {}
372 | - ^^^^ this is of type `bool` but it should be `char` or numeric
374 | this is of type `u8`
376 error[E0308]: mismatched types
377 --> $DIR/recover-range-pats.rs:60:12
379 LL | if let .0...Y = 0 {}
380 | ^^ - - this expression has type `{integer}`
382 | | this is of type `u8`
383 | expected integer, found floating-point number
385 error[E0308]: mismatched types
386 --> $DIR/recover-range-pats.rs:64:17
388 LL | if let X... .0 = 0 {}
389 | - ^^ - this expression has type `u8`
391 | | expected integer, found floating-point number
392 | this is of type `u8`
394 = note: expected type `u8`
397 error[E0029]: only `char` and numeric types are allowed in range patterns
398 --> $DIR/recover-range-pats.rs:73:12
400 LL | if let true.. = 0 {}
401 | ^^^^ this is of type `bool` but it should be `char` or numeric
403 error[E0308]: mismatched types
404 --> $DIR/recover-range-pats.rs:75:12
406 LL | if let .0.. = 0 {}
407 | ^^ - this expression has type `{integer}`
409 | expected integer, found floating-point number
411 error[E0029]: only `char` and numeric types are allowed in range patterns
412 --> $DIR/recover-range-pats.rs:83:12
414 LL | if let true..= = 0 {}
415 | ^^^^ this is of type `bool` but it should be `char` or numeric
417 error[E0308]: mismatched types
418 --> $DIR/recover-range-pats.rs:85:12
420 LL | if let .0..= = 0 {}
421 | ^^ - this expression has type `{integer}`
423 | expected integer, found floating-point number
425 error[E0029]: only `char` and numeric types are allowed in range patterns
426 --> $DIR/recover-range-pats.rs:93:12
428 LL | if let true... = 0 {}
429 | ^^^^ this is of type `bool` but it should be `char` or numeric
431 error[E0308]: mismatched types
432 --> $DIR/recover-range-pats.rs:95:12
434 LL | if let .0... = 0 {}
435 | ^^ - this expression has type `{integer}`
437 | expected integer, found floating-point number
439 error[E0029]: only `char` and numeric types are allowed in range patterns
440 --> $DIR/recover-range-pats.rs:103:14
442 LL | if let ..true = 0 {}
443 | ^^^^ this is of type `bool` but it should be `char` or numeric
445 error[E0308]: mismatched types
446 --> $DIR/recover-range-pats.rs:105:15
448 LL | if let .. .0 = 0 {}
449 | ^^ - this expression has type `{integer}`
451 | expected integer, found floating-point number
453 error[E0029]: only `char` and numeric types are allowed in range patterns
454 --> $DIR/recover-range-pats.rs:113:15
456 LL | if let ..=true = 0 {}
457 | ^^^^ this is of type `bool` but it should be `char` or numeric
459 error[E0308]: mismatched types
460 --> $DIR/recover-range-pats.rs:115:15
462 LL | if let ..=.0 = 0 {}
463 | ^^ - this expression has type `{integer}`
465 | expected integer, found floating-point number
467 error[E0029]: only `char` and numeric types are allowed in range patterns
468 --> $DIR/recover-range-pats.rs:125:15
470 LL | if let ...true = 0 {}
471 | ^^^^ this is of type `bool` but it should be `char` or numeric
473 error[E0308]: mismatched types
474 --> $DIR/recover-range-pats.rs:128:15
476 LL | if let ....3 = 0 {}
477 | ^^ - this expression has type `{integer}`
479 | expected integer, found floating-point number
481 error: aborting due to 60 previous errors
483 Some errors have detailed explanations: E0029, E0308, E0586.
484 For more information about an error, try `rustc --explain E0029`.