]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/recover-range-pats.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / parser / recover-range-pats.stderr
CommitLineData
416331ca 1error: float literals must have an integer part
dfeec247 2 --> $DIR/recover-range-pats.rs:22:12
416331ca
XL
3 |
4LL | if let .0..Y = 0 {}
5 | ^^ help: must have an integer part: `0.0`
6
7error: float literals must have an integer part
dfeec247 8 --> $DIR/recover-range-pats.rs:24:16
416331ca
XL
9 |
10LL | if let X.. .0 = 0 {}
11 | ^^ help: must have an integer part: `0.0`
12
13error: float literals must have an integer part
dfeec247 14 --> $DIR/recover-range-pats.rs:35:12
416331ca
XL
15 |
16LL | if let .0..=Y = 0 {}
17 | ^^ help: must have an integer part: `0.0`
18
19error: float literals must have an integer part
dfeec247 20 --> $DIR/recover-range-pats.rs:37:16
416331ca
XL
21 |
22LL | if let X..=.0 = 0 {}
23 | ^^ help: must have an integer part: `0.0`
24
25error: float literals must have an integer part
17df50a5 26 --> $DIR/recover-range-pats.rs:60:12
416331ca
XL
27 |
28LL | if let .0...Y = 0 {}
29 | ^^ help: must have an integer part: `0.0`
30
31error: float literals must have an integer part
17df50a5 32 --> $DIR/recover-range-pats.rs:64:17
416331ca
XL
33 |
34LL | if let X... .0 = 0 {}
35 | ^^ help: must have an integer part: `0.0`
36
416331ca 37error: float literals must have an integer part
17df50a5 38 --> $DIR/recover-range-pats.rs:75:12
416331ca
XL
39 |
40LL | if let .0.. = 0 {}
41 | ^^ help: must have an integer part: `0.0`
42
dfeec247 43error[E0586]: inclusive range with no end
17df50a5 44 --> $DIR/recover-range-pats.rs:81:13
416331ca
XL
45 |
46LL | 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 51error[E0586]: inclusive range with no end
17df50a5 52 --> $DIR/recover-range-pats.rs:82:13
416331ca
XL
53 |
54LL | 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 59error[E0586]: inclusive range with no end
17df50a5 60 --> $DIR/recover-range-pats.rs:83:16
416331ca
XL
61 |
62LL | 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
67error: float literals must have an integer part
17df50a5 68 --> $DIR/recover-range-pats.rs:85:12
416331ca
XL
69 |
70LL | if let .0..= = 0 {}
71 | ^^ help: must have an integer part: `0.0`
72
dfeec247 73error[E0586]: inclusive range with no end
17df50a5 74 --> $DIR/recover-range-pats.rs:85:14
416331ca
XL
75 |
76LL | 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 81error[E0586]: inclusive range with no end
17df50a5 82 --> $DIR/recover-range-pats.rs:91:13
416331ca
XL
83 |
84LL | 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 89error[E0586]: inclusive range with no end
17df50a5 90 --> $DIR/recover-range-pats.rs:92:13
416331ca
XL
91 |
92LL | 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 97error[E0586]: inclusive range with no end
17df50a5 98 --> $DIR/recover-range-pats.rs:93:16
416331ca
XL
99 |
100LL | 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
105error: float literals must have an integer part
17df50a5 106 --> $DIR/recover-range-pats.rs:95:12
416331ca
XL
107 |
108LL | if let .0... = 0 {}
109 | ^^ help: must have an integer part: `0.0`
110
dfeec247 111error[E0586]: inclusive range with no end
17df50a5 112 --> $DIR/recover-range-pats.rs:95:14
416331ca
XL
113 |
114LL | 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
119error: float literals must have an integer part
17df50a5 120 --> $DIR/recover-range-pats.rs:105:15
416331ca
XL
121 |
122LL | if let .. .0 = 0 {}
123 | ^^ help: must have an integer part: `0.0`
124
416331ca 125error: float literals must have an integer part
17df50a5 126 --> $DIR/recover-range-pats.rs:115:15
416331ca
XL
127 |
128LL | if let ..=.0 = 0 {}
129 | ^^ help: must have an integer part: `0.0`
130
dfeec247 131error: range-to patterns with `...` are not allowed
17df50a5 132 --> $DIR/recover-range-pats.rs:121:12
416331ca
XL
133 |
134LL | if let ...3 = 0 {}
dfeec247 135 | ^^^ help: use `..=` instead
416331ca 136
dfeec247 137error: range-to patterns with `...` are not allowed
17df50a5 138 --> $DIR/recover-range-pats.rs:123:12
416331ca
XL
139 |
140LL | if let ...Y = 0 {}
dfeec247 141 | ^^^ help: use `..=` instead
416331ca 142
dfeec247 143error: range-to patterns with `...` are not allowed
17df50a5 144 --> $DIR/recover-range-pats.rs:125:12
416331ca
XL
145 |
146LL | if let ...true = 0 {}
dfeec247 147 | ^^^ help: use `..=` instead
416331ca
XL
148
149error: float literals must have an integer part
17df50a5 150 --> $DIR/recover-range-pats.rs:128:15
416331ca
XL
151 |
152LL | if let ....3 = 0 {}
153 | ^^ help: must have an integer part: `0.3`
154
dfeec247 155error: range-to patterns with `...` are not allowed
17df50a5 156 --> $DIR/recover-range-pats.rs:128:12
416331ca
XL
157 |
158LL | if let ....3 = 0 {}
dfeec247 159 | ^^^ help: use `..=` instead
416331ca 160
dfeec247 161error: range-to patterns with `...` are not allowed
17df50a5 162 --> $DIR/recover-range-pats.rs:150:17
416331ca
XL
163 |
164LL | let ...$e;
dfeec247 165 | ^^^ help: use `..=` instead
416331ca
XL
166...
167LL | 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 172error[E0586]: inclusive range with no end
17df50a5 173 --> $DIR/recover-range-pats.rs:154:19
416331ca
XL
174 |
175LL | let $e...;
dfeec247 176 | ^^^ help: use `..` instead
416331ca
XL
177...
178LL | 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 184error[E0586]: inclusive range with no end
17df50a5 185 --> $DIR/recover-range-pats.rs:155:19
416331ca
XL
186 |
187LL | let $e..=;
dfeec247 188 | ^^^ help: use `..` instead
416331ca
XL
189...
190LL | 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
196error: `...` range patterns are deprecated
dfeec247 197 --> $DIR/recover-range-pats.rs:42:13
416331ca
XL
198 |
199LL | if let 0...3 = 0 {}
200 | ^^^ help: use `..=` for an inclusive range
201 |
74b04a01 202note: the lint level is defined here
dfeec247 203 --> $DIR/recover-range-pats.rs:8:9
416331ca
XL
204 |
205LL | #![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!
17df50a5 208 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
209
210error: `...` range patterns are deprecated
17df50a5 211 --> $DIR/recover-range-pats.rs:45:13
416331ca
XL
212 |
213LL | 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!
17df50a5 217 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
218
219error: `...` range patterns are deprecated
17df50a5 220 --> $DIR/recover-range-pats.rs:48:13
416331ca
XL
221 |
222LL | 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!
17df50a5 226 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
227
228error: `...` range patterns are deprecated
17df50a5 229 --> $DIR/recover-range-pats.rs:51:13
416331ca
XL
230 |
231LL | 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!
17df50a5 235 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
236
237error: `...` range patterns are deprecated
17df50a5 238 --> $DIR/recover-range-pats.rs:54:16
416331ca
XL
239 |
240LL | 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!
17df50a5 244 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
245
246error: `...` range patterns are deprecated
17df50a5 247 --> $DIR/recover-range-pats.rs:57:13
416331ca
XL
248 |
249LL | 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!
17df50a5 253 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
254
255error: `...` range patterns are deprecated
17df50a5 256 --> $DIR/recover-range-pats.rs:60:14
416331ca
XL
257 |
258LL | 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!
17df50a5 262 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
263
264error: `...` range patterns are deprecated
17df50a5 265 --> $DIR/recover-range-pats.rs:64:13
416331ca
XL
266 |
267LL | 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!
17df50a5 271 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca
XL
272
273error: `...` range patterns are deprecated
17df50a5 274 --> $DIR/recover-range-pats.rs:138:20
416331ca
XL
275 |
276LL | let $e1...$e2;
277 | ^^^ help: use `..=` for an inclusive range
278...
279LL | mac2!(0, 1);
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!
17df50a5
XL
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 286error[E0029]: only `char` and numeric types are allowed in range patterns
dfeec247 287 --> $DIR/recover-range-pats.rs:20:12
416331ca
XL
288 |
289LL | 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 294error[E0029]: only `char` and numeric types are allowed in range patterns
dfeec247 295 --> $DIR/recover-range-pats.rs:21:15
416331ca
XL
296 |
297LL | 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
302error[E0308]: mismatched types
dfeec247 303 --> $DIR/recover-range-pats.rs:22:12
416331ca
XL
304 |
305LL | if let .0..Y = 0 {}
dfeec247
XL
306 | ^^ - this is of type `u8`
307 | |
308 | expected integer, found floating-point number
416331ca
XL
309
310error[E0308]: mismatched types
dfeec247 311 --> $DIR/recover-range-pats.rs:24:16
416331ca
XL
312 |
313LL | 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 319error[E0029]: only `char` and numeric types are allowed in range patterns
dfeec247 320 --> $DIR/recover-range-pats.rs:33:12
416331ca
XL
321 |
322LL | 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 327error[E0029]: only `char` and numeric types are allowed in range patterns
dfeec247 328 --> $DIR/recover-range-pats.rs:34:16
416331ca
XL
329 |
330LL | 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
335error[E0308]: mismatched types
dfeec247 336 --> $DIR/recover-range-pats.rs:35:12
416331ca
XL
337 |
338LL | if let .0..=Y = 0 {}
dfeec247
XL
339 | ^^ - this is of type `u8`
340 | |
341 | expected integer, found floating-point number
416331ca
XL
342
343error[E0308]: mismatched types
dfeec247 344 --> $DIR/recover-range-pats.rs:37:16
416331ca
XL
345 |
346LL | 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 352error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 353 --> $DIR/recover-range-pats.rs:54:12
416331ca
XL
354 |
355LL | 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 360error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 361 --> $DIR/recover-range-pats.rs:57:16
416331ca
XL
362 |
363LL | 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
368error[E0308]: mismatched types
17df50a5 369 --> $DIR/recover-range-pats.rs:60:12
416331ca
XL
370 |
371LL | if let .0...Y = 0 {}
dfeec247
XL
372 | ^^ - this is of type `u8`
373 | |
374 | expected integer, found floating-point number
416331ca
XL
375
376error[E0308]: mismatched types
17df50a5 377 --> $DIR/recover-range-pats.rs:64:17
416331ca
XL
378 |
379LL | 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 385error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 386 --> $DIR/recover-range-pats.rs:73:12
416331ca
XL
387 |
388LL | if let true.. = 0 {}
60c5eb7d 389 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
390
391error[E0308]: mismatched types
17df50a5 392 --> $DIR/recover-range-pats.rs:75:12
416331ca
XL
393 |
394LL | if let .0.. = 0 {}
dfeec247 395 | ^^ expected integer, found floating-point number
416331ca 396
1b1a35ee 397error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 398 --> $DIR/recover-range-pats.rs:83:12
416331ca
XL
399 |
400LL | if let true..= = 0 {}
60c5eb7d 401 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
402
403error[E0308]: mismatched types
17df50a5 404 --> $DIR/recover-range-pats.rs:85:12
416331ca
XL
405 |
406LL | if let .0..= = 0 {}
dfeec247 407 | ^^ expected integer, found floating-point number
416331ca 408
1b1a35ee 409error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 410 --> $DIR/recover-range-pats.rs:93:12
416331ca
XL
411 |
412LL | if let true... = 0 {}
60c5eb7d 413 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
414
415error[E0308]: mismatched types
17df50a5 416 --> $DIR/recover-range-pats.rs:95:12
416331ca
XL
417 |
418LL | if let .0... = 0 {}
dfeec247 419 | ^^ expected integer, found floating-point number
416331ca 420
1b1a35ee 421error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 422 --> $DIR/recover-range-pats.rs:103:14
416331ca
XL
423 |
424LL | if let ..true = 0 {}
60c5eb7d 425 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
426
427error[E0308]: mismatched types
17df50a5 428 --> $DIR/recover-range-pats.rs:105:15
416331ca
XL
429 |
430LL | if let .. .0 = 0 {}
dfeec247 431 | ^^ expected integer, found floating-point number
416331ca 432
1b1a35ee 433error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 434 --> $DIR/recover-range-pats.rs:113:15
416331ca
XL
435 |
436LL | if let ..=true = 0 {}
60c5eb7d 437 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
438
439error[E0308]: mismatched types
17df50a5 440 --> $DIR/recover-range-pats.rs:115:15
416331ca
XL
441 |
442LL | if let ..=.0 = 0 {}
dfeec247 443 | ^^ expected integer, found floating-point number
416331ca 444
1b1a35ee 445error[E0029]: only `char` and numeric types are allowed in range patterns
17df50a5 446 --> $DIR/recover-range-pats.rs:125:15
416331ca
XL
447 |
448LL | if let ...true = 0 {}
60c5eb7d 449 | ^^^^ this is of type `bool` but it should be `char` or numeric
416331ca
XL
450
451error[E0308]: mismatched types
17df50a5 452 --> $DIR/recover-range-pats.rs:128:15
416331ca
XL
453 |
454LL | if let ....3 = 0 {}
dfeec247 455 | ^^ expected integer, found floating-point number
416331ca 456
dfeec247 457error: aborting due to 60 previous errors
416331ca 458
dfeec247 459Some errors have detailed explanations: E0029, E0308, E0586.
416331ca 460For more information about an error, try `rustc --explain E0029`.