]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | error: float literals must have an integer part |
dfeec247 | 2 | --> $DIR/recover-range-pats.rs:22:12 |
416331ca XL |
3 | | |
4 | LL | if let .0..Y = 0 {} | |
5 | | ^^ help: must have an integer part: `0.0` | |
6 | ||
7 | error: float literals must have an integer part | |
dfeec247 | 8 | --> $DIR/recover-range-pats.rs:24:16 |
416331ca XL |
9 | | |
10 | LL | if let X.. .0 = 0 {} | |
11 | | ^^ help: must have an integer part: `0.0` | |
12 | ||
13 | error: float literals must have an integer part | |
dfeec247 | 14 | --> $DIR/recover-range-pats.rs:35:12 |
416331ca XL |
15 | | |
16 | LL | if let .0..=Y = 0 {} | |
17 | | ^^ help: must have an integer part: `0.0` | |
18 | ||
19 | error: float literals must have an integer part | |
dfeec247 | 20 | --> $DIR/recover-range-pats.rs:37:16 |
416331ca XL |
21 | | |
22 | LL | if let X..=.0 = 0 {} | |
23 | | ^^ help: must have an integer part: `0.0` | |
24 | ||
25 | error: float literals must have an integer part | |
17df50a5 | 26 | --> $DIR/recover-range-pats.rs:60:12 |
416331ca XL |
27 | | |
28 | LL | if let .0...Y = 0 {} | |
29 | | ^^ help: must have an integer part: `0.0` | |
30 | ||
31 | error: float literals must have an integer part | |
17df50a5 | 32 | --> $DIR/recover-range-pats.rs:64:17 |
416331ca XL |
33 | | |
34 | LL | if let X... .0 = 0 {} | |
35 | | ^^ help: must have an integer part: `0.0` | |
36 | ||
416331ca | 37 | error: float literals must have an integer part |
17df50a5 | 38 | --> $DIR/recover-range-pats.rs:75:12 |
416331ca XL |
39 | | |
40 | LL | if let .0.. = 0 {} | |
41 | | ^^ help: must have an integer part: `0.0` | |
42 | ||
dfeec247 | 43 | error[E0586]: inclusive range with no end |
17df50a5 | 44 | --> $DIR/recover-range-pats.rs:81:13 |
416331ca XL |
45 | | |
46 | LL | if let 0..= = 0 {} | |
dfeec247 XL |
47 | | ^^^ help: use `..` instead |
48 | | | |
49 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca | 50 | |
dfeec247 | 51 | error[E0586]: inclusive range with no end |
17df50a5 | 52 | --> $DIR/recover-range-pats.rs:82:13 |
416331ca XL |
53 | | |
54 | LL | if let X..= = 0 {} | |
dfeec247 XL |
55 | | ^^^ help: use `..` instead |
56 | | | |
57 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca | 58 | |
dfeec247 | 59 | error[E0586]: inclusive range with no end |
17df50a5 | 60 | --> $DIR/recover-range-pats.rs:83:16 |
416331ca XL |
61 | | |
62 | LL | if let true..= = 0 {} | |
dfeec247 XL |
63 | | ^^^ help: use `..` instead |
64 | | | |
65 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca XL |
66 | |
67 | error: float literals must have an integer part | |
17df50a5 | 68 | --> $DIR/recover-range-pats.rs:85:12 |
416331ca XL |
69 | | |
70 | LL | if let .0..= = 0 {} | |
71 | | ^^ help: must have an integer part: `0.0` | |
72 | ||
dfeec247 | 73 | error[E0586]: inclusive range with no end |
17df50a5 | 74 | --> $DIR/recover-range-pats.rs:85:14 |
416331ca XL |
75 | | |
76 | LL | if let .0..= = 0 {} | |
dfeec247 XL |
77 | | ^^^ help: use `..` instead |
78 | | | |
79 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca | 80 | |
dfeec247 | 81 | error[E0586]: inclusive range with no end |
17df50a5 | 82 | --> $DIR/recover-range-pats.rs:91:13 |
416331ca XL |
83 | | |
84 | LL | if let 0... = 0 {} | |
dfeec247 XL |
85 | | ^^^ help: use `..` instead |
86 | | | |
87 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca | 88 | |
dfeec247 | 89 | error[E0586]: inclusive range with no end |
17df50a5 | 90 | --> $DIR/recover-range-pats.rs:92:13 |
416331ca XL |
91 | | |
92 | LL | if let X... = 0 {} | |
dfeec247 XL |
93 | | ^^^ help: use `..` instead |
94 | | | |
95 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca | 96 | |
dfeec247 | 97 | error[E0586]: inclusive range with no end |
17df50a5 | 98 | --> $DIR/recover-range-pats.rs:93:16 |
416331ca XL |
99 | | |
100 | LL | if let true... = 0 {} | |
dfeec247 XL |
101 | | ^^^ help: use `..` instead |
102 | | | |
103 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
416331ca XL |
104 | |
105 | error: float literals must have an integer part | |
17df50a5 | 106 | --> $DIR/recover-range-pats.rs:95:12 |
416331ca XL |
107 | | |
108 | LL | if let .0... = 0 {} | |
109 | | ^^ help: must have an integer part: `0.0` | |
110 | ||
dfeec247 | 111 | error[E0586]: inclusive range with no end |
17df50a5 | 112 | --> $DIR/recover-range-pats.rs:95:14 |
416331ca XL |
113 | | |
114 | LL | if let .0... = 0 {} | |
dfeec247 | 115 | | ^^^ help: use `..` instead |
416331ca | 116 | | |
dfeec247 | 117 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) |
416331ca XL |
118 | |
119 | error: float literals must have an integer part | |
17df50a5 | 120 | --> $DIR/recover-range-pats.rs:105:15 |
416331ca XL |
121 | | |
122 | LL | if let .. .0 = 0 {} | |
123 | | ^^ help: must have an integer part: `0.0` | |
124 | ||
416331ca | 125 | error: float literals must have an integer part |
17df50a5 | 126 | --> $DIR/recover-range-pats.rs:115:15 |
416331ca XL |
127 | | |
128 | LL | if let ..=.0 = 0 {} | |
129 | | ^^ help: must have an integer part: `0.0` | |
130 | ||
dfeec247 | 131 | error: range-to patterns with `...` are not allowed |
17df50a5 | 132 | --> $DIR/recover-range-pats.rs:121:12 |
416331ca XL |
133 | | |
134 | LL | if let ...3 = 0 {} | |
dfeec247 | 135 | | ^^^ help: use `..=` instead |
416331ca | 136 | |
dfeec247 | 137 | error: range-to patterns with `...` are not allowed |
17df50a5 | 138 | --> $DIR/recover-range-pats.rs:123:12 |
416331ca XL |
139 | | |
140 | LL | if let ...Y = 0 {} | |
dfeec247 | 141 | | ^^^ help: use `..=` instead |
416331ca | 142 | |
dfeec247 | 143 | error: range-to patterns with `...` are not allowed |
17df50a5 | 144 | --> $DIR/recover-range-pats.rs:125:12 |
416331ca XL |
145 | | |
146 | LL | if let ...true = 0 {} | |
dfeec247 | 147 | | ^^^ help: use `..=` instead |
416331ca XL |
148 | |
149 | error: float literals must have an integer part | |
17df50a5 | 150 | --> $DIR/recover-range-pats.rs:128:15 |
416331ca XL |
151 | | |
152 | LL | if let ....3 = 0 {} | |
153 | | ^^ help: must have an integer part: `0.3` | |
154 | ||
dfeec247 | 155 | error: range-to patterns with `...` are not allowed |
17df50a5 | 156 | --> $DIR/recover-range-pats.rs:128:12 |
416331ca XL |
157 | | |
158 | LL | if let ....3 = 0 {} | |
dfeec247 | 159 | | ^^^ help: use `..=` instead |
416331ca | 160 | |
dfeec247 | 161 | error: range-to patterns with `...` are not allowed |
17df50a5 | 162 | --> $DIR/recover-range-pats.rs:150:17 |
416331ca XL |
163 | | |
164 | LL | let ...$e; | |
dfeec247 | 165 | | ^^^ help: use `..=` instead |
416331ca XL |
166 | ... |
167 | LL | mac!(0); | |
c295e0f8 | 168 | | ------- in this macro invocation |
74b04a01 | 169 | | |
17df50a5 | 170 | = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca | 171 | |
dfeec247 | 172 | error[E0586]: inclusive range with no end |
17df50a5 | 173 | --> $DIR/recover-range-pats.rs:154:19 |
416331ca XL |
174 | | |
175 | LL | let $e...; | |
dfeec247 | 176 | | ^^^ help: use `..` instead |
416331ca XL |
177 | ... |
178 | LL | mac!(0); | |
c295e0f8 | 179 | | ------- in this macro invocation |
dfeec247 XL |
180 | | |
181 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
17df50a5 | 182 | = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca | 183 | |
dfeec247 | 184 | error[E0586]: inclusive range with no end |
17df50a5 | 185 | --> $DIR/recover-range-pats.rs:155:19 |
416331ca XL |
186 | | |
187 | LL | let $e..=; | |
dfeec247 | 188 | | ^^^ help: use `..` instead |
416331ca XL |
189 | ... |
190 | LL | mac!(0); | |
c295e0f8 | 191 | | ------- in this macro invocation |
dfeec247 XL |
192 | | |
193 | = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) | |
17df50a5 | 194 | = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca XL |
195 | |
196 | error: `...` range patterns are deprecated | |
dfeec247 | 197 | --> $DIR/recover-range-pats.rs:42:13 |
416331ca XL |
198 | | |
199 | LL | if let 0...3 = 0 {} | |
200 | | ^^^ help: use `..=` for an inclusive range | |
201 | | | |
74b04a01 | 202 | note: the lint level is defined here |
dfeec247 | 203 | --> $DIR/recover-range-pats.rs:8:9 |
416331ca XL |
204 | | |
205 | LL | #![deny(ellipsis_inclusive_range_patterns)] | |
206 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
136023e0 | 207 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 208 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
209 | |
210 | error: `...` range patterns are deprecated | |
17df50a5 | 211 | --> $DIR/recover-range-pats.rs:45:13 |
416331ca XL |
212 | | |
213 | LL | if let 0...Y = 0 {} | |
214 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 215 | | |
136023e0 | 216 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 217 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
218 | |
219 | error: `...` range patterns are deprecated | |
17df50a5 | 220 | --> $DIR/recover-range-pats.rs:48:13 |
416331ca XL |
221 | | |
222 | LL | if let X...3 = 0 {} | |
223 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 224 | | |
136023e0 | 225 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 226 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
227 | |
228 | error: `...` range patterns are deprecated | |
17df50a5 | 229 | --> $DIR/recover-range-pats.rs:51:13 |
416331ca XL |
230 | | |
231 | LL | if let X...Y = 0 {} | |
232 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 233 | | |
136023e0 | 234 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 235 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
236 | |
237 | error: `...` range patterns are deprecated | |
17df50a5 | 238 | --> $DIR/recover-range-pats.rs:54:16 |
416331ca XL |
239 | | |
240 | LL | if let true...Y = 0 {} | |
241 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 242 | | |
136023e0 | 243 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 244 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
245 | |
246 | error: `...` range patterns are deprecated | |
17df50a5 | 247 | --> $DIR/recover-range-pats.rs:57:13 |
416331ca XL |
248 | | |
249 | LL | if let X...true = 0 {} | |
250 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 251 | | |
136023e0 | 252 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 253 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
254 | |
255 | error: `...` range patterns are deprecated | |
17df50a5 | 256 | --> $DIR/recover-range-pats.rs:60:14 |
416331ca XL |
257 | | |
258 | LL | if let .0...Y = 0 {} | |
259 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 260 | | |
136023e0 | 261 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 262 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
263 | |
264 | error: `...` range patterns are deprecated | |
17df50a5 | 265 | --> $DIR/recover-range-pats.rs:64:13 |
416331ca XL |
266 | | |
267 | LL | if let X... .0 = 0 {} | |
268 | | ^^^ help: use `..=` for an inclusive range | |
17df50a5 | 269 | | |
136023e0 | 270 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 271 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
416331ca XL |
272 | |
273 | error: `...` range patterns are deprecated | |
17df50a5 | 274 | --> $DIR/recover-range-pats.rs:138:20 |
416331ca XL |
275 | | |
276 | LL | let $e1...$e2; | |
277 | | ^^^ help: use `..=` for an inclusive range | |
278 | ... | |
279 | LL | mac2!(0, 1); | |
c295e0f8 | 280 | | ----------- in this macro invocation |
74b04a01 | 281 | | |
136023e0 | 282 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
94222f64 | 283 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
17df50a5 | 284 | = note: this error originates in the macro `mac2` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca | 285 | |
1b1a35ee | 286 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 287 | --> $DIR/recover-range-pats.rs:20:12 |
416331ca XL |
288 | | |
289 | LL | if let true..Y = 0 {} | |
60c5eb7d XL |
290 | | ^^^^ - this is of type `u8` |
291 | | | | |
292 | | this is of type `bool` but it should be `char` or numeric | |
416331ca | 293 | |
1b1a35ee | 294 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 295 | --> $DIR/recover-range-pats.rs:21:15 |
416331ca XL |
296 | | |
297 | LL | if let X..true = 0 {} | |
60c5eb7d XL |
298 | | - ^^^^ this is of type `bool` but it should be `char` or numeric |
299 | | | | |
300 | | this is of type `u8` | |
416331ca XL |
301 | |
302 | error[E0308]: mismatched types | |
dfeec247 | 303 | --> $DIR/recover-range-pats.rs:22:12 |
416331ca XL |
304 | | |
305 | LL | if let .0..Y = 0 {} | |
5e7ed085 FG |
306 | | ^^ - - this expression has type `{integer}` |
307 | | | | | |
308 | | | this is of type `u8` | |
dfeec247 | 309 | | expected integer, found floating-point number |
416331ca XL |
310 | |
311 | error[E0308]: mismatched types | |
dfeec247 | 312 | --> $DIR/recover-range-pats.rs:24:16 |
416331ca XL |
313 | | |
314 | LL | if let X.. .0 = 0 {} | |
dfeec247 XL |
315 | | - ^^ - this expression has type `u8` |
316 | | | | | |
317 | | | expected integer, found floating-point number | |
318 | | this is of type `u8` | |
04454e1e FG |
319 | | |
320 | = note: expected type `u8` | |
321 | found type `{float}` | |
416331ca | 322 | |
1b1a35ee | 323 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 324 | --> $DIR/recover-range-pats.rs:33:12 |
416331ca XL |
325 | | |
326 | LL | if let true..=Y = 0 {} | |
60c5eb7d XL |
327 | | ^^^^ - this is of type `u8` |
328 | | | | |
329 | | this is of type `bool` but it should be `char` or numeric | |
416331ca | 330 | |
1b1a35ee | 331 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 332 | --> $DIR/recover-range-pats.rs:34:16 |
416331ca XL |
333 | | |
334 | LL | if let X..=true = 0 {} | |
60c5eb7d XL |
335 | | - ^^^^ this is of type `bool` but it should be `char` or numeric |
336 | | | | |
337 | | this is of type `u8` | |
416331ca XL |
338 | |
339 | error[E0308]: mismatched types | |
dfeec247 | 340 | --> $DIR/recover-range-pats.rs:35:12 |
416331ca XL |
341 | | |
342 | LL | if let .0..=Y = 0 {} | |
5e7ed085 FG |
343 | | ^^ - - this expression has type `{integer}` |
344 | | | | | |
345 | | | this is of type `u8` | |
dfeec247 | 346 | | expected integer, found floating-point number |
416331ca XL |
347 | |
348 | error[E0308]: mismatched types | |
dfeec247 | 349 | --> $DIR/recover-range-pats.rs:37:16 |
416331ca XL |
350 | | |
351 | LL | if let X..=.0 = 0 {} | |
dfeec247 XL |
352 | | - ^^ - this expression has type `u8` |
353 | | | | | |
354 | | | expected integer, found floating-point number | |
355 | | this is of type `u8` | |
04454e1e FG |
356 | | |
357 | = note: expected type `u8` | |
358 | found type `{float}` | |
416331ca | 359 | |
1b1a35ee | 360 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 361 | --> $DIR/recover-range-pats.rs:54:12 |
416331ca XL |
362 | | |
363 | LL | if let true...Y = 0 {} | |
60c5eb7d XL |
364 | | ^^^^ - this is of type `u8` |
365 | | | | |
366 | | this is of type `bool` but it should be `char` or numeric | |
416331ca | 367 | |
1b1a35ee | 368 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 369 | --> $DIR/recover-range-pats.rs:57:16 |
416331ca XL |
370 | | |
371 | LL | if let X...true = 0 {} | |
60c5eb7d XL |
372 | | - ^^^^ this is of type `bool` but it should be `char` or numeric |
373 | | | | |
374 | | this is of type `u8` | |
416331ca XL |
375 | |
376 | error[E0308]: mismatched types | |
17df50a5 | 377 | --> $DIR/recover-range-pats.rs:60:12 |
416331ca XL |
378 | | |
379 | LL | if let .0...Y = 0 {} | |
5e7ed085 FG |
380 | | ^^ - - this expression has type `{integer}` |
381 | | | | | |
382 | | | this is of type `u8` | |
dfeec247 | 383 | | expected integer, found floating-point number |
416331ca XL |
384 | |
385 | error[E0308]: mismatched types | |
17df50a5 | 386 | --> $DIR/recover-range-pats.rs:64:17 |
416331ca XL |
387 | | |
388 | LL | if let X... .0 = 0 {} | |
dfeec247 XL |
389 | | - ^^ - this expression has type `u8` |
390 | | | | | |
391 | | | expected integer, found floating-point number | |
392 | | this is of type `u8` | |
04454e1e FG |
393 | | |
394 | = note: expected type `u8` | |
395 | found type `{float}` | |
416331ca | 396 | |
1b1a35ee | 397 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 398 | --> $DIR/recover-range-pats.rs:73:12 |
416331ca XL |
399 | | |
400 | LL | if let true.. = 0 {} | |
60c5eb7d | 401 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
402 | |
403 | error[E0308]: mismatched types | |
17df50a5 | 404 | --> $DIR/recover-range-pats.rs:75:12 |
416331ca XL |
405 | | |
406 | LL | if let .0.. = 0 {} | |
5e7ed085 FG |
407 | | ^^ - this expression has type `{integer}` |
408 | | | | |
409 | | expected integer, found floating-point number | |
416331ca | 410 | |
1b1a35ee | 411 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 412 | --> $DIR/recover-range-pats.rs:83:12 |
416331ca XL |
413 | | |
414 | LL | if let true..= = 0 {} | |
60c5eb7d | 415 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
416 | |
417 | error[E0308]: mismatched types | |
17df50a5 | 418 | --> $DIR/recover-range-pats.rs:85:12 |
416331ca XL |
419 | | |
420 | LL | if let .0..= = 0 {} | |
5e7ed085 FG |
421 | | ^^ - this expression has type `{integer}` |
422 | | | | |
423 | | expected integer, found floating-point number | |
416331ca | 424 | |
1b1a35ee | 425 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 426 | --> $DIR/recover-range-pats.rs:93:12 |
416331ca XL |
427 | | |
428 | LL | if let true... = 0 {} | |
60c5eb7d | 429 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
430 | |
431 | error[E0308]: mismatched types | |
17df50a5 | 432 | --> $DIR/recover-range-pats.rs:95:12 |
416331ca XL |
433 | | |
434 | LL | if let .0... = 0 {} | |
5e7ed085 FG |
435 | | ^^ - this expression has type `{integer}` |
436 | | | | |
437 | | expected integer, found floating-point number | |
416331ca | 438 | |
1b1a35ee | 439 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 440 | --> $DIR/recover-range-pats.rs:103:14 |
416331ca XL |
441 | | |
442 | LL | if let ..true = 0 {} | |
60c5eb7d | 443 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
444 | |
445 | error[E0308]: mismatched types | |
17df50a5 | 446 | --> $DIR/recover-range-pats.rs:105:15 |
416331ca XL |
447 | | |
448 | LL | if let .. .0 = 0 {} | |
5e7ed085 FG |
449 | | ^^ - this expression has type `{integer}` |
450 | | | | |
451 | | expected integer, found floating-point number | |
416331ca | 452 | |
1b1a35ee | 453 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 454 | --> $DIR/recover-range-pats.rs:113:15 |
416331ca XL |
455 | | |
456 | LL | if let ..=true = 0 {} | |
60c5eb7d | 457 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
458 | |
459 | error[E0308]: mismatched types | |
17df50a5 | 460 | --> $DIR/recover-range-pats.rs:115:15 |
416331ca XL |
461 | | |
462 | LL | if let ..=.0 = 0 {} | |
5e7ed085 FG |
463 | | ^^ - this expression has type `{integer}` |
464 | | | | |
465 | | expected integer, found floating-point number | |
416331ca | 466 | |
1b1a35ee | 467 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 468 | --> $DIR/recover-range-pats.rs:125:15 |
416331ca XL |
469 | | |
470 | LL | if let ...true = 0 {} | |
60c5eb7d | 471 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
472 | |
473 | error[E0308]: mismatched types | |
17df50a5 | 474 | --> $DIR/recover-range-pats.rs:128:15 |
416331ca XL |
475 | | |
476 | LL | if let ....3 = 0 {} | |
5e7ed085 FG |
477 | | ^^ - this expression has type `{integer}` |
478 | | | | |
479 | | expected integer, found floating-point number | |
416331ca | 480 | |
dfeec247 | 481 | error: aborting due to 60 previous errors |
416331ca | 482 | |
dfeec247 | 483 | Some errors have detailed explanations: E0029, E0308, E0586. |
416331ca | 484 | For more information about an error, try `rustc --explain E0029`. |