]>
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); | |
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); | |
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); | |
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 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
17df50a5 XL |
207 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
208 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
215 | | |
216 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
217 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
224 | | |
225 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
226 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
233 | | |
234 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
235 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
242 | | |
243 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
244 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
251 | | |
252 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
253 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
260 | | |
261 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
262 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 XL |
269 | | |
270 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! | |
271 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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); | |
280 | | ------------ in this macro invocation | |
74b04a01 | 281 | | |
17df50a5 XL |
282 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
283 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> | |
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 {} | |
dfeec247 XL |
306 | | ^^ - this is of type `u8` |
307 | | | | |
308 | | expected integer, found floating-point number | |
416331ca XL |
309 | |
310 | error[E0308]: mismatched types | |
dfeec247 | 311 | --> $DIR/recover-range-pats.rs:24:16 |
416331ca XL |
312 | | |
313 | LL | if let X.. .0 = 0 {} | |
dfeec247 XL |
314 | | - ^^ - this expression has type `u8` |
315 | | | | | |
316 | | | expected integer, found floating-point number | |
317 | | this is of type `u8` | |
416331ca | 318 | |
1b1a35ee | 319 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 320 | --> $DIR/recover-range-pats.rs:33:12 |
416331ca XL |
321 | | |
322 | LL | if let true..=Y = 0 {} | |
60c5eb7d XL |
323 | | ^^^^ - this is of type `u8` |
324 | | | | |
325 | | this is of type `bool` but it should be `char` or numeric | |
416331ca | 326 | |
1b1a35ee | 327 | error[E0029]: only `char` and numeric types are allowed in range patterns |
dfeec247 | 328 | --> $DIR/recover-range-pats.rs:34:16 |
416331ca XL |
329 | | |
330 | LL | if let X..=true = 0 {} | |
60c5eb7d XL |
331 | | - ^^^^ this is of type `bool` but it should be `char` or numeric |
332 | | | | |
333 | | this is of type `u8` | |
416331ca XL |
334 | |
335 | error[E0308]: mismatched types | |
dfeec247 | 336 | --> $DIR/recover-range-pats.rs:35:12 |
416331ca XL |
337 | | |
338 | LL | if let .0..=Y = 0 {} | |
dfeec247 XL |
339 | | ^^ - this is of type `u8` |
340 | | | | |
341 | | expected integer, found floating-point number | |
416331ca XL |
342 | |
343 | error[E0308]: mismatched types | |
dfeec247 | 344 | --> $DIR/recover-range-pats.rs:37:16 |
416331ca XL |
345 | | |
346 | LL | if let X..=.0 = 0 {} | |
dfeec247 XL |
347 | | - ^^ - this expression has type `u8` |
348 | | | | | |
349 | | | expected integer, found floating-point number | |
350 | | this is of type `u8` | |
416331ca | 351 | |
1b1a35ee | 352 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 353 | --> $DIR/recover-range-pats.rs:54:12 |
416331ca XL |
354 | | |
355 | LL | if let true...Y = 0 {} | |
60c5eb7d XL |
356 | | ^^^^ - this is of type `u8` |
357 | | | | |
358 | | this is of type `bool` but it should be `char` or numeric | |
416331ca | 359 | |
1b1a35ee | 360 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 361 | --> $DIR/recover-range-pats.rs:57:16 |
416331ca XL |
362 | | |
363 | LL | if let X...true = 0 {} | |
60c5eb7d XL |
364 | | - ^^^^ this is of type `bool` but it should be `char` or numeric |
365 | | | | |
366 | | this is of type `u8` | |
416331ca XL |
367 | |
368 | error[E0308]: mismatched types | |
17df50a5 | 369 | --> $DIR/recover-range-pats.rs:60:12 |
416331ca XL |
370 | | |
371 | LL | if let .0...Y = 0 {} | |
dfeec247 XL |
372 | | ^^ - this is of type `u8` |
373 | | | | |
374 | | expected integer, found floating-point number | |
416331ca XL |
375 | |
376 | error[E0308]: mismatched types | |
17df50a5 | 377 | --> $DIR/recover-range-pats.rs:64:17 |
416331ca XL |
378 | | |
379 | LL | if let X... .0 = 0 {} | |
dfeec247 XL |
380 | | - ^^ - this expression has type `u8` |
381 | | | | | |
382 | | | expected integer, found floating-point number | |
383 | | this is of type `u8` | |
416331ca | 384 | |
1b1a35ee | 385 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 386 | --> $DIR/recover-range-pats.rs:73:12 |
416331ca XL |
387 | | |
388 | LL | if let true.. = 0 {} | |
60c5eb7d | 389 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
390 | |
391 | error[E0308]: mismatched types | |
17df50a5 | 392 | --> $DIR/recover-range-pats.rs:75:12 |
416331ca XL |
393 | | |
394 | LL | if let .0.. = 0 {} | |
dfeec247 | 395 | | ^^ expected integer, found floating-point number |
416331ca | 396 | |
1b1a35ee | 397 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 398 | --> $DIR/recover-range-pats.rs:83: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:85:12 |
416331ca XL |
405 | | |
406 | LL | if let .0..= = 0 {} | |
dfeec247 | 407 | | ^^ expected integer, found floating-point number |
416331ca | 408 | |
1b1a35ee | 409 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 410 | --> $DIR/recover-range-pats.rs:93:12 |
416331ca XL |
411 | | |
412 | LL | if let true... = 0 {} | |
60c5eb7d | 413 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
414 | |
415 | error[E0308]: mismatched types | |
17df50a5 | 416 | --> $DIR/recover-range-pats.rs:95:12 |
416331ca XL |
417 | | |
418 | LL | if let .0... = 0 {} | |
dfeec247 | 419 | | ^^ expected integer, found floating-point number |
416331ca | 420 | |
1b1a35ee | 421 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 422 | --> $DIR/recover-range-pats.rs:103:14 |
416331ca XL |
423 | | |
424 | LL | if let ..true = 0 {} | |
60c5eb7d | 425 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
426 | |
427 | error[E0308]: mismatched types | |
17df50a5 | 428 | --> $DIR/recover-range-pats.rs:105:15 |
416331ca XL |
429 | | |
430 | LL | if let .. .0 = 0 {} | |
dfeec247 | 431 | | ^^ expected integer, found floating-point number |
416331ca | 432 | |
1b1a35ee | 433 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 434 | --> $DIR/recover-range-pats.rs:113:15 |
416331ca XL |
435 | | |
436 | LL | if let ..=true = 0 {} | |
60c5eb7d | 437 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
438 | |
439 | error[E0308]: mismatched types | |
17df50a5 | 440 | --> $DIR/recover-range-pats.rs:115:15 |
416331ca XL |
441 | | |
442 | LL | if let ..=.0 = 0 {} | |
dfeec247 | 443 | | ^^ expected integer, found floating-point number |
416331ca | 444 | |
1b1a35ee | 445 | error[E0029]: only `char` and numeric types are allowed in range patterns |
17df50a5 | 446 | --> $DIR/recover-range-pats.rs:125:15 |
416331ca XL |
447 | | |
448 | LL | if let ...true = 0 {} | |
60c5eb7d | 449 | | ^^^^ this is of type `bool` but it should be `char` or numeric |
416331ca XL |
450 | |
451 | error[E0308]: mismatched types | |
17df50a5 | 452 | --> $DIR/recover-range-pats.rs:128:15 |
416331ca XL |
453 | | |
454 | LL | if let ....3 = 0 {} | |
dfeec247 | 455 | | ^^ expected integer, found floating-point number |
416331ca | 456 | |
dfeec247 | 457 | error: aborting due to 60 previous errors |
416331ca | 458 | |
dfeec247 | 459 | Some errors have detailed explanations: E0029, E0308, E0586. |
416331ca | 460 | For more information about an error, try `rustc --explain E0029`. |