]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-range-pats.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / recover-range-pats.stderr
1 error: float literals must have an integer part
2   --> $DIR/recover-range-pats.rs:21:12
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
8   --> $DIR/recover-range-pats.rs:23:16
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
14   --> $DIR/recover-range-pats.rs:34:12
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
20   --> $DIR/recover-range-pats.rs:36:16
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
26   --> $DIR/recover-range-pats.rs:49:12
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
32   --> $DIR/recover-range-pats.rs:52:17
33    |
34 LL |     if let X... .0 = 0 {}
35    |                 ^^ help: must have an integer part: `0.0`
36
37 error: `X..` range patterns are not supported
38   --> $DIR/recover-range-pats.rs:58:12
39    |
40 LL |     if let 0.. = 0 {}
41    |            ^^^ help: try using the maximum value for the type: `0..MAX`
42
43 error: `X..` range patterns are not supported
44   --> $DIR/recover-range-pats.rs:59:12
45    |
46 LL |     if let X.. = 0 {}
47    |            ^^^ help: try using the maximum value for the type: `X..MAX`
48
49 error: `X..` range patterns are not supported
50   --> $DIR/recover-range-pats.rs:60:12
51    |
52 LL |     if let true.. = 0 {}
53    |            ^^^^^^ help: try using the maximum value for the type: `true..MAX`
54
55 error: float literals must have an integer part
56   --> $DIR/recover-range-pats.rs:62:12
57    |
58 LL |     if let .0.. = 0 {}
59    |            ^^ help: must have an integer part: `0.0`
60
61 error: `X..` range patterns are not supported
62   --> $DIR/recover-range-pats.rs:62:12
63    |
64 LL |     if let .0.. = 0 {}
65    |            ^^^^ help: try using the maximum value for the type: `0.0..MAX`
66
67 error: `X..=` range patterns are not supported
68   --> $DIR/recover-range-pats.rs:68:12
69    |
70 LL |     if let 0..= = 0 {}
71    |            ^^^^ help: try using the maximum value for the type: `0..=MAX`
72
73 error: `X..=` range patterns are not supported
74   --> $DIR/recover-range-pats.rs:69:12
75    |
76 LL |     if let X..= = 0 {}
77    |            ^^^^ help: try using the maximum value for the type: `X..=MAX`
78
79 error: `X..=` range patterns are not supported
80   --> $DIR/recover-range-pats.rs:70:12
81    |
82 LL |     if let true..= = 0 {}
83    |            ^^^^^^^ help: try using the maximum value for the type: `true..=MAX`
84
85 error: float literals must have an integer part
86   --> $DIR/recover-range-pats.rs:72:12
87    |
88 LL |     if let .0..= = 0 {}
89    |            ^^ help: must have an integer part: `0.0`
90
91 error: `X..=` range patterns are not supported
92   --> $DIR/recover-range-pats.rs:72:12
93    |
94 LL |     if let .0..= = 0 {}
95    |            ^^^^^ help: try using the maximum value for the type: `0.0..=MAX`
96
97 error: `X...` range patterns are not supported
98   --> $DIR/recover-range-pats.rs:78:12
99    |
100 LL |     if let 0... = 0 {}
101    |            ^^^^ help: try using the maximum value for the type: `0...MAX`
102
103 error: `X...` range patterns are not supported
104   --> $DIR/recover-range-pats.rs:80:12
105    |
106 LL |     if let X... = 0 {}
107    |            ^^^^ help: try using the maximum value for the type: `X...MAX`
108
109 error: `X...` range patterns are not supported
110   --> $DIR/recover-range-pats.rs:82:12
111    |
112 LL |     if let true... = 0 {}
113    |            ^^^^^^^ help: try using the maximum value for the type: `true...MAX`
114
115 error: float literals must have an integer part
116   --> $DIR/recover-range-pats.rs:85:12
117    |
118 LL |     if let .0... = 0 {}
119    |            ^^ help: must have an integer part: `0.0`
120
121 error: `X...` range patterns are not supported
122   --> $DIR/recover-range-pats.rs:85:12
123    |
124 LL |     if let .0... = 0 {}
125    |            ^^^^^ help: try using the maximum value for the type: `0.0...MAX`
126
127 error: `..X` range patterns are not supported
128   --> $DIR/recover-range-pats.rs:92:12
129    |
130 LL |     if let ..0 = 0 {}
131    |            ^^^ help: try using the minimum value for the type: `MIN..0`
132
133 error: `..X` range patterns are not supported
134   --> $DIR/recover-range-pats.rs:93:12
135    |
136 LL |     if let ..Y = 0 {}
137    |            ^^^ help: try using the minimum value for the type: `MIN..Y`
138
139 error: `..X` range patterns are not supported
140   --> $DIR/recover-range-pats.rs:94:12
141    |
142 LL |     if let ..true = 0 {}
143    |            ^^^^^^ help: try using the minimum value for the type: `MIN..true`
144
145 error: float literals must have an integer part
146   --> $DIR/recover-range-pats.rs:96:15
147    |
148 LL |     if let .. .0 = 0 {}
149    |               ^^ help: must have an integer part: `0.0`
150
151 error: `..X` range patterns are not supported
152   --> $DIR/recover-range-pats.rs:96:12
153    |
154 LL |     if let .. .0 = 0 {}
155    |            ^^^^^ help: try using the minimum value for the type: `MIN..0.0`
156
157 error: `..=X` range patterns are not supported
158   --> $DIR/recover-range-pats.rs:102:12
159    |
160 LL |     if let ..=3 = 0 {}
161    |            ^^^^ help: try using the minimum value for the type: `MIN..=3`
162
163 error: `..=X` range patterns are not supported
164   --> $DIR/recover-range-pats.rs:103:12
165    |
166 LL |     if let ..=Y = 0 {}
167    |            ^^^^ help: try using the minimum value for the type: `MIN..=Y`
168
169 error: `..=X` range patterns are not supported
170   --> $DIR/recover-range-pats.rs:104:12
171    |
172 LL |     if let ..=true = 0 {}
173    |            ^^^^^^^ help: try using the minimum value for the type: `MIN..=true`
174
175 error: float literals must have an integer part
176   --> $DIR/recover-range-pats.rs:106:15
177    |
178 LL |     if let ..=.0 = 0 {}
179    |               ^^ help: must have an integer part: `0.0`
180
181 error: `..=X` range patterns are not supported
182   --> $DIR/recover-range-pats.rs:106:12
183    |
184 LL |     if let ..=.0 = 0 {}
185    |            ^^^^^ help: try using the minimum value for the type: `MIN..=0.0`
186
187 error: `...X` range patterns are not supported
188   --> $DIR/recover-range-pats.rs:112:12
189    |
190 LL |     if let ...3 = 0 {}
191    |            ^^^^ help: try using the minimum value for the type: `MIN...3`
192
193 error: `...X` range patterns are not supported
194   --> $DIR/recover-range-pats.rs:114:12
195    |
196 LL |     if let ...Y = 0 {}
197    |            ^^^^ help: try using the minimum value for the type: `MIN...Y`
198
199 error: `...X` range patterns are not supported
200   --> $DIR/recover-range-pats.rs:116:12
201    |
202 LL |     if let ...true = 0 {}
203    |            ^^^^^^^ help: try using the minimum value for the type: `MIN...true`
204
205 error: float literals must have an integer part
206   --> $DIR/recover-range-pats.rs:119:15
207    |
208 LL |     if let ....3 = 0 {}
209    |               ^^ help: must have an integer part: `0.3`
210
211 error: `...X` range patterns are not supported
212   --> $DIR/recover-range-pats.rs:119:12
213    |
214 LL |     if let ....3 = 0 {}
215    |            ^^^^^ help: try using the minimum value for the type: `MIN...0.3`
216
217 error: `..X` range patterns are not supported
218   --> $DIR/recover-range-pats.rs:139:17
219    |
220 LL |             let ..$e;
221    |                 ^^ help: try using the minimum value for the type: `MIN..0`
222 ...
223 LL |     mac!(0);
224    |     -------- in this macro invocation
225
226 error: `...X` range patterns are not supported
227   --> $DIR/recover-range-pats.rs:140:17
228    |
229 LL |             let ...$e;
230    |                 ^^^ help: try using the minimum value for the type: `MIN...0`
231 ...
232 LL |     mac!(0);
233    |     -------- in this macro invocation
234
235 error: `..=X` range patterns are not supported
236   --> $DIR/recover-range-pats.rs:142:17
237    |
238 LL |             let ..=$e;
239    |                 ^^^ help: try using the minimum value for the type: `MIN..=0`
240 ...
241 LL |     mac!(0);
242    |     -------- in this macro invocation
243
244 error: `X..` range patterns are not supported
245   --> $DIR/recover-range-pats.rs:143:19
246    |
247 LL |             let $e..;
248    |                   ^^ help: try using the maximum value for the type: `0..MAX`
249 ...
250 LL |     mac!(0);
251    |     -------- in this macro invocation
252
253 error: `X...` range patterns are not supported
254   --> $DIR/recover-range-pats.rs:144:19
255    |
256 LL |             let $e...;
257    |                   ^^^ help: try using the maximum value for the type: `0...MAX`
258 ...
259 LL |     mac!(0);
260    |     -------- in this macro invocation
261
262 error: `X..=` range patterns are not supported
263   --> $DIR/recover-range-pats.rs:146:19
264    |
265 LL |             let $e..=;
266    |                   ^^^ help: try using the maximum value for the type: `0..=MAX`
267 ...
268 LL |     mac!(0);
269    |     -------- in this macro invocation
270
271 error: `...` range patterns are deprecated
272   --> $DIR/recover-range-pats.rs:41:13
273    |
274 LL |     if let 0...3 = 0 {}
275    |             ^^^ help: use `..=` for an inclusive range
276    |
277 note: lint level defined here
278   --> $DIR/recover-range-pats.rs:7:9
279    |
280 LL | #![deny(ellipsis_inclusive_range_patterns)]
281    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282
283 error: `...` range patterns are deprecated
284   --> $DIR/recover-range-pats.rs:42:13
285    |
286 LL |     if let 0...Y = 0 {}
287    |             ^^^ help: use `..=` for an inclusive range
288
289 error: `...` range patterns are deprecated
290   --> $DIR/recover-range-pats.rs:43:13
291    |
292 LL |     if let X...3 = 0 {}
293    |             ^^^ help: use `..=` for an inclusive range
294
295 error: `...` range patterns are deprecated
296   --> $DIR/recover-range-pats.rs:44:13
297    |
298 LL |     if let X...Y = 0 {}
299    |             ^^^ help: use `..=` for an inclusive range
300
301 error: `...` range patterns are deprecated
302   --> $DIR/recover-range-pats.rs:45:16
303    |
304 LL |     if let true...Y = 0 {}
305    |                ^^^ help: use `..=` for an inclusive range
306
307 error: `...` range patterns are deprecated
308   --> $DIR/recover-range-pats.rs:47:13
309    |
310 LL |     if let X...true = 0 {}
311    |             ^^^ help: use `..=` for an inclusive range
312
313 error: `...` range patterns are deprecated
314   --> $DIR/recover-range-pats.rs:49:14
315    |
316 LL |     if let .0...Y = 0 {}
317    |              ^^^ help: use `..=` for an inclusive range
318
319 error: `...` range patterns are deprecated
320   --> $DIR/recover-range-pats.rs:52:13
321    |
322 LL |     if let X... .0 = 0 {}
323    |             ^^^ help: use `..=` for an inclusive range
324
325 error: `...` range patterns are deprecated
326   --> $DIR/recover-range-pats.rs:78:13
327    |
328 LL |     if let 0... = 0 {}
329    |             ^^^ help: use `..=` for an inclusive range
330
331 error: `...` range patterns are deprecated
332   --> $DIR/recover-range-pats.rs:80:13
333    |
334 LL |     if let X... = 0 {}
335    |             ^^^ help: use `..=` for an inclusive range
336
337 error: `...` range patterns are deprecated
338   --> $DIR/recover-range-pats.rs:82:16
339    |
340 LL |     if let true... = 0 {}
341    |                ^^^ help: use `..=` for an inclusive range
342
343 error: `...` range patterns are deprecated
344   --> $DIR/recover-range-pats.rs:85:14
345    |
346 LL |     if let .0... = 0 {}
347    |              ^^^ help: use `..=` for an inclusive range
348
349 error: `...` range patterns are deprecated
350   --> $DIR/recover-range-pats.rs:112:12
351    |
352 LL |     if let ...3 = 0 {}
353    |            ^^^ help: use `..=` for an inclusive range
354
355 error: `...` range patterns are deprecated
356   --> $DIR/recover-range-pats.rs:114:12
357    |
358 LL |     if let ...Y = 0 {}
359    |            ^^^ help: use `..=` for an inclusive range
360
361 error: `...` range patterns are deprecated
362   --> $DIR/recover-range-pats.rs:116:12
363    |
364 LL |     if let ...true = 0 {}
365    |            ^^^ help: use `..=` for an inclusive range
366
367 error: `...` range patterns are deprecated
368   --> $DIR/recover-range-pats.rs:119:12
369    |
370 LL |     if let ....3 = 0 {}
371    |            ^^^ help: use `..=` for an inclusive range
372
373 error: `...` range patterns are deprecated
374   --> $DIR/recover-range-pats.rs:129:20
375    |
376 LL |             let $e1...$e2;
377    |                    ^^^ help: use `..=` for an inclusive range
378 ...
379 LL |     mac2!(0, 1);
380    |     ------------ in this macro invocation
381
382 error: `...` range patterns are deprecated
383   --> $DIR/recover-range-pats.rs:140:17
384    |
385 LL |             let ...$e;
386    |                 ^^^ help: use `..=` for an inclusive range
387 ...
388 LL |     mac!(0);
389    |     -------- in this macro invocation
390
391 error: `...` range patterns are deprecated
392   --> $DIR/recover-range-pats.rs:144:19
393    |
394 LL |             let $e...;
395    |                   ^^^ help: use `..=` for an inclusive range
396 ...
397 LL |     mac!(0);
398    |     -------- in this macro invocation
399
400 error[E0029]: only char and numeric types are allowed in range patterns
401   --> $DIR/recover-range-pats.rs:19:12
402    |
403 LL |     if let true..Y = 0 {}
404    |            ^^^^  - this is of type `u8`
405    |            |
406    |            this is of type `bool` but it should be `char` or numeric
407
408 error[E0029]: only char and numeric types are allowed in range patterns
409   --> $DIR/recover-range-pats.rs:20:15
410    |
411 LL |     if let X..true = 0 {}
412    |            -  ^^^^ this is of type `bool` but it should be `char` or numeric
413    |            |
414    |            this is of type `u8`
415
416 error[E0308]: mismatched types
417   --> $DIR/recover-range-pats.rs:21:12
418    |
419 LL |     if let .0..Y = 0 {}
420    |            ^^^^^ expected integer, found floating-point number
421
422 error[E0308]: mismatched types
423   --> $DIR/recover-range-pats.rs:23:12
424    |
425 LL |     if let X.. .0 = 0 {}
426    |            ^^^^^^ expected integer, found floating-point number
427
428 error[E0029]: only char and numeric types are allowed in range patterns
429   --> $DIR/recover-range-pats.rs:32:12
430    |
431 LL |     if let true..=Y = 0 {}
432    |            ^^^^   - this is of type `u8`
433    |            |
434    |            this is of type `bool` but it should be `char` or numeric
435
436 error[E0029]: only char and numeric types are allowed in range patterns
437   --> $DIR/recover-range-pats.rs:33:16
438    |
439 LL |     if let X..=true = 0 {}
440    |            -   ^^^^ this is of type `bool` but it should be `char` or numeric
441    |            |
442    |            this is of type `u8`
443
444 error[E0308]: mismatched types
445   --> $DIR/recover-range-pats.rs:34:12
446    |
447 LL |     if let .0..=Y = 0 {}
448    |            ^^^^^^ expected integer, found floating-point number
449
450 error[E0308]: mismatched types
451   --> $DIR/recover-range-pats.rs:36:12
452    |
453 LL |     if let X..=.0 = 0 {}
454    |            ^^^^^^ expected integer, found floating-point number
455
456 error[E0029]: only char and numeric types are allowed in range patterns
457   --> $DIR/recover-range-pats.rs:45:12
458    |
459 LL |     if let true...Y = 0 {}
460    |            ^^^^   - this is of type `u8`
461    |            |
462    |            this is of type `bool` but it should be `char` or numeric
463
464 error[E0029]: only char and numeric types are allowed in range patterns
465   --> $DIR/recover-range-pats.rs:47:16
466    |
467 LL |     if let X...true = 0 {}
468    |            -   ^^^^ this is of type `bool` but it should be `char` or numeric
469    |            |
470    |            this is of type `u8`
471
472 error[E0308]: mismatched types
473   --> $DIR/recover-range-pats.rs:49:12
474    |
475 LL |     if let .0...Y = 0 {}
476    |            ^^^^^^ expected integer, found floating-point number
477
478 error[E0308]: mismatched types
479   --> $DIR/recover-range-pats.rs:52:12
480    |
481 LL |     if let X... .0 = 0 {}
482    |            ^^^^^^^ expected integer, found floating-point number
483
484 error[E0029]: only char and numeric types are allowed in range patterns
485   --> $DIR/recover-range-pats.rs:60:12
486    |
487 LL |     if let true.. = 0 {}
488    |            ^^^^ this is of type `bool` but it should be `char` or numeric
489
490 error[E0308]: mismatched types
491   --> $DIR/recover-range-pats.rs:62:12
492    |
493 LL |     if let .0.. = 0 {}
494    |            ^^^^ expected integer, found floating-point number
495
496 error[E0029]: only char and numeric types are allowed in range patterns
497   --> $DIR/recover-range-pats.rs:70:12
498    |
499 LL |     if let true..= = 0 {}
500    |            ^^^^ this is of type `bool` but it should be `char` or numeric
501
502 error[E0308]: mismatched types
503   --> $DIR/recover-range-pats.rs:72:12
504    |
505 LL |     if let .0..= = 0 {}
506    |            ^^^^^ expected integer, found floating-point number
507
508 error[E0029]: only char and numeric types are allowed in range patterns
509   --> $DIR/recover-range-pats.rs:82:12
510    |
511 LL |     if let true... = 0 {}
512    |            ^^^^ this is of type `bool` but it should be `char` or numeric
513
514 error[E0308]: mismatched types
515   --> $DIR/recover-range-pats.rs:85:12
516    |
517 LL |     if let .0... = 0 {}
518    |            ^^^^^ expected integer, found floating-point number
519
520 error[E0029]: only char and numeric types are allowed in range patterns
521   --> $DIR/recover-range-pats.rs:94:14
522    |
523 LL |     if let ..true = 0 {}
524    |              ^^^^ this is of type `bool` but it should be `char` or numeric
525
526 error[E0308]: mismatched types
527   --> $DIR/recover-range-pats.rs:96:12
528    |
529 LL |     if let .. .0 = 0 {}
530    |            ^^^^^ expected integer, found floating-point number
531
532 error[E0029]: only char and numeric types are allowed in range patterns
533   --> $DIR/recover-range-pats.rs:104:15
534    |
535 LL |     if let ..=true = 0 {}
536    |               ^^^^ this is of type `bool` but it should be `char` or numeric
537
538 error[E0308]: mismatched types
539   --> $DIR/recover-range-pats.rs:106:12
540    |
541 LL |     if let ..=.0 = 0 {}
542    |            ^^^^^ expected integer, found floating-point number
543
544 error[E0029]: only char and numeric types are allowed in range patterns
545   --> $DIR/recover-range-pats.rs:116:15
546    |
547 LL |     if let ...true = 0 {}
548    |               ^^^^ this is of type `bool` but it should be `char` or numeric
549
550 error[E0308]: mismatched types
551   --> $DIR/recover-range-pats.rs:119:12
552    |
553 LL |     if let ....3 = 0 {}
554    |            ^^^^^ expected integer, found floating-point number
555
556 error: aborting due to 85 previous errors
557
558 Some errors have detailed explanations: E0029, E0308.
559 For more information about an error, try `rustc --explain E0029`.