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:50: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:53: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:63: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:69: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:70: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:71: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:73: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:73: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:79: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:80: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:81: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:83: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:83: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:93: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:103: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:109: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:111: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:113: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:116: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:116: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:137:17
165 | ^^^ help: use `..=` instead
168 | -------- in this macro invocation
170 = note: this error originates in a macro (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:141: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 a macro (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:142: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 a macro (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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
208 error: `...` range patterns are deprecated
209 --> $DIR/recover-range-pats.rs:43:13
211 LL | if let 0...Y = 0 {}
212 | ^^^ help: use `..=` for an inclusive range
214 error: `...` range patterns are deprecated
215 --> $DIR/recover-range-pats.rs:44:13
217 LL | if let X...3 = 0 {}
218 | ^^^ help: use `..=` for an inclusive range
220 error: `...` range patterns are deprecated
221 --> $DIR/recover-range-pats.rs:45:13
223 LL | if let X...Y = 0 {}
224 | ^^^ help: use `..=` for an inclusive range
226 error: `...` range patterns are deprecated
227 --> $DIR/recover-range-pats.rs:46:16
229 LL | if let true...Y = 0 {}
230 | ^^^ help: use `..=` for an inclusive range
232 error: `...` range patterns are deprecated
233 --> $DIR/recover-range-pats.rs:48:13
235 LL | if let X...true = 0 {}
236 | ^^^ help: use `..=` for an inclusive range
238 error: `...` range patterns are deprecated
239 --> $DIR/recover-range-pats.rs:50:14
241 LL | if let .0...Y = 0 {}
242 | ^^^ help: use `..=` for an inclusive range
244 error: `...` range patterns are deprecated
245 --> $DIR/recover-range-pats.rs:53:13
247 LL | if let X... .0 = 0 {}
248 | ^^^ help: use `..=` for an inclusive range
250 error: `...` range patterns are deprecated
251 --> $DIR/recover-range-pats.rs:126:20
254 | ^^^ help: use `..=` for an inclusive range
257 | ------------ in this macro invocation
259 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
261 error[E0029]: only char and numeric types are allowed in range patterns
262 --> $DIR/recover-range-pats.rs:20:12
264 LL | if let true..Y = 0 {}
265 | ^^^^ - this is of type `u8`
267 | this is of type `bool` but it should be `char` or numeric
269 error[E0029]: only char and numeric types are allowed in range patterns
270 --> $DIR/recover-range-pats.rs:21:15
272 LL | if let X..true = 0 {}
273 | - ^^^^ this is of type `bool` but it should be `char` or numeric
275 | this is of type `u8`
277 error[E0308]: mismatched types
278 --> $DIR/recover-range-pats.rs:22:12
280 LL | if let .0..Y = 0 {}
281 | ^^ - this is of type `u8`
283 | expected integer, found floating-point number
285 error[E0308]: mismatched types
286 --> $DIR/recover-range-pats.rs:24:16
288 LL | if let X.. .0 = 0 {}
289 | - ^^ - this expression has type `u8`
291 | | expected integer, found floating-point number
292 | this is of type `u8`
294 error[E0029]: only char and numeric types are allowed in range patterns
295 --> $DIR/recover-range-pats.rs:33:12
297 LL | if let true..=Y = 0 {}
298 | ^^^^ - this is of type `u8`
300 | this is of type `bool` but it should be `char` or numeric
302 error[E0029]: only char and numeric types are allowed in range patterns
303 --> $DIR/recover-range-pats.rs:34:16
305 LL | if let X..=true = 0 {}
306 | - ^^^^ this is of type `bool` but it should be `char` or numeric
308 | this is of type `u8`
310 error[E0308]: mismatched types
311 --> $DIR/recover-range-pats.rs:35:12
313 LL | if let .0..=Y = 0 {}
314 | ^^ - this is of type `u8`
316 | expected integer, found floating-point number
318 error[E0308]: mismatched types
319 --> $DIR/recover-range-pats.rs:37:16
321 LL | if let X..=.0 = 0 {}
322 | - ^^ - this expression has type `u8`
324 | | expected integer, found floating-point number
325 | this is of type `u8`
327 error[E0029]: only char and numeric types are allowed in range patterns
328 --> $DIR/recover-range-pats.rs:46:12
330 LL | if let true...Y = 0 {}
331 | ^^^^ - this is of type `u8`
333 | this is of type `bool` but it should be `char` or numeric
335 error[E0029]: only char and numeric types are allowed in range patterns
336 --> $DIR/recover-range-pats.rs:48:16
338 LL | if let X...true = 0 {}
339 | - ^^^^ this is of type `bool` but it should be `char` or numeric
341 | this is of type `u8`
343 error[E0308]: mismatched types
344 --> $DIR/recover-range-pats.rs:50:12
346 LL | if let .0...Y = 0 {}
347 | ^^ - this is of type `u8`
349 | expected integer, found floating-point number
351 error[E0308]: mismatched types
352 --> $DIR/recover-range-pats.rs:53:17
354 LL | if let X... .0 = 0 {}
355 | - ^^ - this expression has type `u8`
357 | | expected integer, found floating-point number
358 | this is of type `u8`
360 error[E0029]: only char and numeric types are allowed in range patterns
361 --> $DIR/recover-range-pats.rs:61:12
363 LL | if let true.. = 0 {}
364 | ^^^^ this is of type `bool` but it should be `char` or numeric
366 error[E0308]: mismatched types
367 --> $DIR/recover-range-pats.rs:63:12
369 LL | if let .0.. = 0 {}
370 | ^^ expected integer, found floating-point number
372 error[E0029]: only char and numeric types are allowed in range patterns
373 --> $DIR/recover-range-pats.rs:71:12
375 LL | if let true..= = 0 {}
376 | ^^^^ this is of type `bool` but it should be `char` or numeric
378 error[E0308]: mismatched types
379 --> $DIR/recover-range-pats.rs:73:12
381 LL | if let .0..= = 0 {}
382 | ^^ expected integer, found floating-point number
384 error[E0029]: only char and numeric types are allowed in range patterns
385 --> $DIR/recover-range-pats.rs:81:12
387 LL | if let true... = 0 {}
388 | ^^^^ this is of type `bool` but it should be `char` or numeric
390 error[E0308]: mismatched types
391 --> $DIR/recover-range-pats.rs:83:12
393 LL | if let .0... = 0 {}
394 | ^^ expected integer, found floating-point number
396 error[E0029]: only char and numeric types are allowed in range patterns
397 --> $DIR/recover-range-pats.rs:91:14
399 LL | if let ..true = 0 {}
400 | ^^^^ this is of type `bool` but it should be `char` or numeric
402 error[E0308]: mismatched types
403 --> $DIR/recover-range-pats.rs:93:15
405 LL | if let .. .0 = 0 {}
406 | ^^ expected integer, found floating-point number
408 error[E0029]: only char and numeric types are allowed in range patterns
409 --> $DIR/recover-range-pats.rs:101:15
411 LL | if let ..=true = 0 {}
412 | ^^^^ this is of type `bool` but it should be `char` or numeric
414 error[E0308]: mismatched types
415 --> $DIR/recover-range-pats.rs:103:15
417 LL | if let ..=.0 = 0 {}
418 | ^^ expected integer, found floating-point number
420 error[E0029]: only char and numeric types are allowed in range patterns
421 --> $DIR/recover-range-pats.rs:113:15
423 LL | if let ...true = 0 {}
424 | ^^^^ this is of type `bool` but it should be `char` or numeric
426 error[E0308]: mismatched types
427 --> $DIR/recover-range-pats.rs:116:15
429 LL | if let ....3 = 0 {}
430 | ^^ expected integer, found floating-point number
432 error: aborting due to 60 previous errors
434 Some errors have detailed explanations: E0029, E0308, E0586.
435 For more information about an error, try `rustc --explain E0029`.