fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
36.2 KiB1021 linesraw
1error: expected expression, found `let` statement
2  --> $DIR/disallowed-positions-without-feature-gate.rs:11:9
3   |
4LL |     if (let 0 = 1) {}
5   |         ^^^^^^^^^
6   |
7   = note: only supported directly in conditions of `if` and `while` expressions
8note: `let`s wrapped in parentheses are not supported in a context with let chains
9  --> $DIR/disallowed-positions-without-feature-gate.rs:11:9
10   |
11LL |     if (let 0 = 1) {}
12   |         ^^^^^^^^^
13
14error: expected expression, found `let` statement
15  --> $DIR/disallowed-positions-without-feature-gate.rs:14:11
16   |
17LL |     if (((let 0 = 1))) {}
18   |           ^^^^^^^^^
19   |
20   = note: only supported directly in conditions of `if` and `while` expressions
21note: `let`s wrapped in parentheses are not supported in a context with let chains
22  --> $DIR/disallowed-positions-without-feature-gate.rs:14:11
23   |
24LL |     if (((let 0 = 1))) {}
25   |           ^^^^^^^^^
26
27error: expected expression, found `let` statement
28  --> $DIR/disallowed-positions-without-feature-gate.rs:17:9
29   |
30LL |     if (let 0 = 1) && true {}
31   |         ^^^^^^^^^
32   |
33   = note: only supported directly in conditions of `if` and `while` expressions
34note: `let`s wrapped in parentheses are not supported in a context with let chains
35  --> $DIR/disallowed-positions-without-feature-gate.rs:17:9
36   |
37LL |     if (let 0 = 1) && true {}
38   |         ^^^^^^^^^
39
40error: expected expression, found `let` statement
41  --> $DIR/disallowed-positions-without-feature-gate.rs:20:17
42   |
43LL |     if true && (let 0 = 1) {}
44   |                 ^^^^^^^^^
45   |
46   = note: only supported directly in conditions of `if` and `while` expressions
47note: `let`s wrapped in parentheses are not supported in a context with let chains
48  --> $DIR/disallowed-positions-without-feature-gate.rs:20:17
49   |
50LL |     if true && (let 0 = 1) {}
51   |                 ^^^^^^^^^
52
53error: expected expression, found `let` statement
54  --> $DIR/disallowed-positions-without-feature-gate.rs:23:9
55   |
56LL |     if (let 0 = 1) && (let 0 = 1) {}
57   |         ^^^^^^^^^
58   |
59   = note: only supported directly in conditions of `if` and `while` expressions
60note: `let`s wrapped in parentheses are not supported in a context with let chains
61  --> $DIR/disallowed-positions-without-feature-gate.rs:23:9
62   |
63LL |     if (let 0 = 1) && (let 0 = 1) {}
64   |         ^^^^^^^^^
65
66error: expected expression, found `let` statement
67  --> $DIR/disallowed-positions-without-feature-gate.rs:23:24
68   |
69LL |     if (let 0 = 1) && (let 0 = 1) {}
70   |                        ^^^^^^^^^
71   |
72   = note: only supported directly in conditions of `if` and `while` expressions
73note: `let`s wrapped in parentheses are not supported in a context with let chains
74  --> $DIR/disallowed-positions-without-feature-gate.rs:23:24
75   |
76LL |     if (let 0 = 1) && (let 0 = 1) {}
77   |                        ^^^^^^^^^
78
79error: expected expression, found `let` statement
80  --> $DIR/disallowed-positions-without-feature-gate.rs:27:9
81   |
82LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
83   |         ^^^^^^^^^
84   |
85   = note: only supported directly in conditions of `if` and `while` expressions
86note: `let`s wrapped in parentheses are not supported in a context with let chains
87  --> $DIR/disallowed-positions-without-feature-gate.rs:27:9
88   |
89LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
90   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91
92error: expected expression, found `let` statement
93  --> $DIR/disallowed-positions-without-feature-gate.rs:27:22
94   |
95LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
96   |                      ^^^^^^^^^
97   |
98   = note: only supported directly in conditions of `if` and `while` expressions
99note: `let`s wrapped in parentheses are not supported in a context with let chains
100  --> $DIR/disallowed-positions-without-feature-gate.rs:27:9
101   |
102LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
103   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
105error: expected expression, found `let` statement
106  --> $DIR/disallowed-positions-without-feature-gate.rs:27:35
107   |
108LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
109   |                                   ^^^^^^^^^
110   |
111   = note: only supported directly in conditions of `if` and `while` expressions
112note: `let`s wrapped in parentheses are not supported in a context with let chains
113  --> $DIR/disallowed-positions-without-feature-gate.rs:27:9
114   |
115LL |     if (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
116   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117
118error: expected expression, found `let` statement
119  --> $DIR/disallowed-positions-without-feature-gate.rs:34:12
120   |
121LL |     while (let 0 = 1) {}
122   |            ^^^^^^^^^
123   |
124   = note: only supported directly in conditions of `if` and `while` expressions
125note: `let`s wrapped in parentheses are not supported in a context with let chains
126  --> $DIR/disallowed-positions-without-feature-gate.rs:34:12
127   |
128LL |     while (let 0 = 1) {}
129   |            ^^^^^^^^^
130
131error: expected expression, found `let` statement
132  --> $DIR/disallowed-positions-without-feature-gate.rs:37:14
133   |
134LL |     while (((let 0 = 1))) {}
135   |              ^^^^^^^^^
136   |
137   = note: only supported directly in conditions of `if` and `while` expressions
138note: `let`s wrapped in parentheses are not supported in a context with let chains
139  --> $DIR/disallowed-positions-without-feature-gate.rs:37:14
140   |
141LL |     while (((let 0 = 1))) {}
142   |              ^^^^^^^^^
143
144error: expected expression, found `let` statement
145  --> $DIR/disallowed-positions-without-feature-gate.rs:40:12
146   |
147LL |     while (let 0 = 1) && true {}
148   |            ^^^^^^^^^
149   |
150   = note: only supported directly in conditions of `if` and `while` expressions
151note: `let`s wrapped in parentheses are not supported in a context with let chains
152  --> $DIR/disallowed-positions-without-feature-gate.rs:40:12
153   |
154LL |     while (let 0 = 1) && true {}
155   |            ^^^^^^^^^
156
157error: expected expression, found `let` statement
158  --> $DIR/disallowed-positions-without-feature-gate.rs:43:20
159   |
160LL |     while true && (let 0 = 1) {}
161   |                    ^^^^^^^^^
162   |
163   = note: only supported directly in conditions of `if` and `while` expressions
164note: `let`s wrapped in parentheses are not supported in a context with let chains
165  --> $DIR/disallowed-positions-without-feature-gate.rs:43:20
166   |
167LL |     while true && (let 0 = 1) {}
168   |                    ^^^^^^^^^
169
170error: expected expression, found `let` statement
171  --> $DIR/disallowed-positions-without-feature-gate.rs:46:12
172   |
173LL |     while (let 0 = 1) && (let 0 = 1) {}
174   |            ^^^^^^^^^
175   |
176   = note: only supported directly in conditions of `if` and `while` expressions
177note: `let`s wrapped in parentheses are not supported in a context with let chains
178  --> $DIR/disallowed-positions-without-feature-gate.rs:46:12
179   |
180LL |     while (let 0 = 1) && (let 0 = 1) {}
181   |            ^^^^^^^^^
182
183error: expected expression, found `let` statement
184  --> $DIR/disallowed-positions-without-feature-gate.rs:46:27
185   |
186LL |     while (let 0 = 1) && (let 0 = 1) {}
187   |                           ^^^^^^^^^
188   |
189   = note: only supported directly in conditions of `if` and `while` expressions
190note: `let`s wrapped in parentheses are not supported in a context with let chains
191  --> $DIR/disallowed-positions-without-feature-gate.rs:46:27
192   |
193LL |     while (let 0 = 1) && (let 0 = 1) {}
194   |                           ^^^^^^^^^
195
196error: expected expression, found `let` statement
197  --> $DIR/disallowed-positions-without-feature-gate.rs:50:12
198   |
199LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
200   |            ^^^^^^^^^
201   |
202   = note: only supported directly in conditions of `if` and `while` expressions
203note: `let`s wrapped in parentheses are not supported in a context with let chains
204  --> $DIR/disallowed-positions-without-feature-gate.rs:50:12
205   |
206LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
207   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
208
209error: expected expression, found `let` statement
210  --> $DIR/disallowed-positions-without-feature-gate.rs:50:25
211   |
212LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
213   |                         ^^^^^^^^^
214   |
215   = note: only supported directly in conditions of `if` and `while` expressions
216note: `let`s wrapped in parentheses are not supported in a context with let chains
217  --> $DIR/disallowed-positions-without-feature-gate.rs:50:12
218   |
219LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
220   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
221
222error: expected expression, found `let` statement
223  --> $DIR/disallowed-positions-without-feature-gate.rs:50:38
224   |
225LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
226   |                                      ^^^^^^^^^
227   |
228   = note: only supported directly in conditions of `if` and `while` expressions
229note: `let`s wrapped in parentheses are not supported in a context with let chains
230  --> $DIR/disallowed-positions-without-feature-gate.rs:50:12
231   |
232LL |     while (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
233   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
234
235error: expected expression, found `let` statement
236  --> $DIR/disallowed-positions-without-feature-gate.rs:70:9
237   |
238LL |     if &let 0 = 0 {}
239   |         ^^^^^^^^^
240   |
241   = note: only supported directly in conditions of `if` and `while` expressions
242
243error: expected expression, found `let` statement
244  --> $DIR/disallowed-positions-without-feature-gate.rs:73:9
245   |
246LL |     if !let 0 = 0 {}
247   |         ^^^^^^^^^
248   |
249   = note: only supported directly in conditions of `if` and `while` expressions
250
251error: expected expression, found `let` statement
252  --> $DIR/disallowed-positions-without-feature-gate.rs:75:9
253   |
254LL |     if *let 0 = 0 {}
255   |         ^^^^^^^^^
256   |
257   = note: only supported directly in conditions of `if` and `while` expressions
258
259error: expected expression, found `let` statement
260  --> $DIR/disallowed-positions-without-feature-gate.rs:77:9
261   |
262LL |     if -let 0 = 0 {}
263   |         ^^^^^^^^^
264   |
265   = note: only supported directly in conditions of `if` and `while` expressions
266
267error: expected expression, found `let` statement
268  --> $DIR/disallowed-positions-without-feature-gate.rs:85:9
269   |
270LL |     if (let 0 = 0)? {}
271   |         ^^^^^^^^^
272   |
273   = note: only supported directly in conditions of `if` and `while` expressions
274
275error: expected expression, found `let` statement
276  --> $DIR/disallowed-positions-without-feature-gate.rs:88:16
277   |
278LL |     if true || let 0 = 0 {}
279   |                ^^^^^^^^^
280   |
281   = note: only supported directly in conditions of `if` and `while` expressions
282note: `||` operators are not supported in let chain expressions
283  --> $DIR/disallowed-positions-without-feature-gate.rs:88:13
284   |
285LL |     if true || let 0 = 0 {}
286   |             ^^
287
288error: expected expression, found `let` statement
289  --> $DIR/disallowed-positions-without-feature-gate.rs:90:17
290   |
291LL |     if (true || let 0 = 0) {}
292   |                 ^^^^^^^^^
293   |
294   = note: only supported directly in conditions of `if` and `while` expressions
295
296error: expected expression, found `let` statement
297  --> $DIR/disallowed-positions-without-feature-gate.rs:92:25
298   |
299LL |     if true && (true || let 0 = 0) {}
300   |                         ^^^^^^^^^
301   |
302   = note: only supported directly in conditions of `if` and `while` expressions
303
304error: expected expression, found `let` statement
305  --> $DIR/disallowed-positions-without-feature-gate.rs:94:25
306   |
307LL |     if true || (true && let 0 = 0) {}
308   |                         ^^^^^^^^^
309   |
310   = note: only supported directly in conditions of `if` and `while` expressions
311
312error: expected expression, found `let` statement
313  --> $DIR/disallowed-positions-without-feature-gate.rs:98:12
314   |
315LL |     if x = let 0 = 0 {}
316   |            ^^^
317   |
318   = note: only supported directly in conditions of `if` and `while` expressions
319
320error: expected expression, found `let` statement
321  --> $DIR/disallowed-positions-without-feature-gate.rs:101:15
322   |
323LL |     if true..(let 0 = 0) {}
324   |               ^^^^^^^^^
325   |
326   = note: only supported directly in conditions of `if` and `while` expressions
327
328error: expected expression, found `let` statement
329  --> $DIR/disallowed-positions-without-feature-gate.rs:104:11
330   |
331LL |     if ..(let 0 = 0) {}
332   |           ^^^^^^^^^
333   |
334   = note: only supported directly in conditions of `if` and `while` expressions
335
336error: expected expression, found `let` statement
337  --> $DIR/disallowed-positions-without-feature-gate.rs:106:9
338   |
339LL |     if (let 0 = 0).. {}
340   |         ^^^^^^^^^
341   |
342   = note: only supported directly in conditions of `if` and `while` expressions
343
344error: expected expression, found `let` statement
345  --> $DIR/disallowed-positions-without-feature-gate.rs:110:8
346   |
347LL |     if let Range { start: _, end: _ } = true..true && false {}
348   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
349   |
350   = note: only supported directly in conditions of `if` and `while` expressions
351
352error: expected expression, found `let` statement
353  --> $DIR/disallowed-positions-without-feature-gate.rs:113:8
354   |
355LL |     if let Range { start: _, end: _ } = true..true || false {}
356   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357   |
358   = note: only supported directly in conditions of `if` and `while` expressions
359
360error: expected expression, found `let` statement
361  --> $DIR/disallowed-positions-without-feature-gate.rs:119:8
362   |
363LL |     if let Range { start: F, end } = F..|| true {}
364   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
365   |
366   = note: only supported directly in conditions of `if` and `while` expressions
367
368error: expected expression, found `let` statement
369  --> $DIR/disallowed-positions-without-feature-gate.rs:125:8
370   |
371LL |     if let Range { start: true, end } = t..&&false {}
372   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
373   |
374   = note: only supported directly in conditions of `if` and `while` expressions
375
376error: expected expression, found `let` statement
377  --> $DIR/disallowed-positions-without-feature-gate.rs:129:19
378   |
379LL |     if let true = let true = true {}
380   |                   ^^^
381   |
382   = note: only supported directly in conditions of `if` and `while` expressions
383
384error: expected expression, found `let` statement
385  --> $DIR/disallowed-positions-without-feature-gate.rs:134:12
386   |
387LL |     while &let 0 = 0 {}
388   |            ^^^^^^^^^
389   |
390   = note: only supported directly in conditions of `if` and `while` expressions
391
392error: expected expression, found `let` statement
393  --> $DIR/disallowed-positions-without-feature-gate.rs:137:12
394   |
395LL |     while !let 0 = 0 {}
396   |            ^^^^^^^^^
397   |
398   = note: only supported directly in conditions of `if` and `while` expressions
399
400error: expected expression, found `let` statement
401  --> $DIR/disallowed-positions-without-feature-gate.rs:139:12
402   |
403LL |     while *let 0 = 0 {}
404   |            ^^^^^^^^^
405   |
406   = note: only supported directly in conditions of `if` and `while` expressions
407
408error: expected expression, found `let` statement
409  --> $DIR/disallowed-positions-without-feature-gate.rs:141:12
410   |
411LL |     while -let 0 = 0 {}
412   |            ^^^^^^^^^
413   |
414   = note: only supported directly in conditions of `if` and `while` expressions
415
416error: expected expression, found `let` statement
417  --> $DIR/disallowed-positions-without-feature-gate.rs:149:12
418   |
419LL |     while (let 0 = 0)? {}
420   |            ^^^^^^^^^
421   |
422   = note: only supported directly in conditions of `if` and `while` expressions
423
424error: expected expression, found `let` statement
425  --> $DIR/disallowed-positions-without-feature-gate.rs:152:19
426   |
427LL |     while true || let 0 = 0 {}
428   |                   ^^^^^^^^^
429   |
430   = note: only supported directly in conditions of `if` and `while` expressions
431note: `||` operators are not supported in let chain expressions
432  --> $DIR/disallowed-positions-without-feature-gate.rs:152:16
433   |
434LL |     while true || let 0 = 0 {}
435   |                ^^
436
437error: expected expression, found `let` statement
438  --> $DIR/disallowed-positions-without-feature-gate.rs:154:20
439   |
440LL |     while (true || let 0 = 0) {}
441   |                    ^^^^^^^^^
442   |
443   = note: only supported directly in conditions of `if` and `while` expressions
444
445error: expected expression, found `let` statement
446  --> $DIR/disallowed-positions-without-feature-gate.rs:156:28
447   |
448LL |     while true && (true || let 0 = 0) {}
449   |                            ^^^^^^^^^
450   |
451   = note: only supported directly in conditions of `if` and `while` expressions
452
453error: expected expression, found `let` statement
454  --> $DIR/disallowed-positions-without-feature-gate.rs:158:28
455   |
456LL |     while true || (true && let 0 = 0) {}
457   |                            ^^^^^^^^^
458   |
459   = note: only supported directly in conditions of `if` and `while` expressions
460
461error: expected expression, found `let` statement
462  --> $DIR/disallowed-positions-without-feature-gate.rs:162:15
463   |
464LL |     while x = let 0 = 0 {}
465   |               ^^^
466   |
467   = note: only supported directly in conditions of `if` and `while` expressions
468
469error: expected expression, found `let` statement
470  --> $DIR/disallowed-positions-without-feature-gate.rs:165:18
471   |
472LL |     while true..(let 0 = 0) {}
473   |                  ^^^^^^^^^
474   |
475   = note: only supported directly in conditions of `if` and `while` expressions
476
477error: expected expression, found `let` statement
478  --> $DIR/disallowed-positions-without-feature-gate.rs:168:14
479   |
480LL |     while ..(let 0 = 0) {}
481   |              ^^^^^^^^^
482   |
483   = note: only supported directly in conditions of `if` and `while` expressions
484
485error: expected expression, found `let` statement
486  --> $DIR/disallowed-positions-without-feature-gate.rs:170:12
487   |
488LL |     while (let 0 = 0).. {}
489   |            ^^^^^^^^^
490   |
491   = note: only supported directly in conditions of `if` and `while` expressions
492
493error: expected expression, found `let` statement
494  --> $DIR/disallowed-positions-without-feature-gate.rs:174:11
495   |
496LL |     while let Range { start: _, end: _ } = true..true && false {}
497   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
498   |
499   = note: only supported directly in conditions of `if` and `while` expressions
500
501error: expected expression, found `let` statement
502  --> $DIR/disallowed-positions-without-feature-gate.rs:177:11
503   |
504LL |     while let Range { start: _, end: _ } = true..true || false {}
505   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
506   |
507   = note: only supported directly in conditions of `if` and `while` expressions
508
509error: expected expression, found `let` statement
510  --> $DIR/disallowed-positions-without-feature-gate.rs:183:11
511   |
512LL |     while let Range { start: F, end } = F..|| true {}
513   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
514   |
515   = note: only supported directly in conditions of `if` and `while` expressions
516
517error: expected expression, found `let` statement
518  --> $DIR/disallowed-positions-without-feature-gate.rs:189:11
519   |
520LL |     while let Range { start: true, end } = t..&&false {}
521   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522   |
523   = note: only supported directly in conditions of `if` and `while` expressions
524
525error: expected expression, found `let` statement
526  --> $DIR/disallowed-positions-without-feature-gate.rs:193:22
527   |
528LL |     while let true = let true = true {}
529   |                      ^^^
530   |
531   = note: only supported directly in conditions of `if` and `while` expressions
532
533error: expected expression, found `let` statement
534  --> $DIR/disallowed-positions-without-feature-gate.rs:208:6
535   |
536LL |     &let 0 = 0;
537   |      ^^^
538   |
539   = note: only supported directly in conditions of `if` and `while` expressions
540
541error: expected expression, found `let` statement
542  --> $DIR/disallowed-positions-without-feature-gate.rs:211:6
543   |
544LL |     !let 0 = 0;
545   |      ^^^
546   |
547   = note: only supported directly in conditions of `if` and `while` expressions
548
549error: expected expression, found `let` statement
550  --> $DIR/disallowed-positions-without-feature-gate.rs:213:6
551   |
552LL |     *let 0 = 0;
553   |      ^^^
554   |
555   = note: only supported directly in conditions of `if` and `while` expressions
556
557error: expected expression, found `let` statement
558  --> $DIR/disallowed-positions-without-feature-gate.rs:215:6
559   |
560LL |     -let 0 = 0;
561   |      ^^^
562   |
563   = note: only supported directly in conditions of `if` and `while` expressions
564
565error: expected expression, found `let` statement
566  --> $DIR/disallowed-positions-without-feature-gate.rs:217:13
567   |
568LL |     let _ = let _ = 3;
569   |             ^^^
570   |
571   = note: only supported directly in conditions of `if` and `while` expressions
572
573error: expected expression, found `let` statement
574  --> $DIR/disallowed-positions-without-feature-gate.rs:225:6
575   |
576LL |     (let 0 = 0)?;
577   |      ^^^
578   |
579   = note: only supported directly in conditions of `if` and `while` expressions
580
581error: expected expression, found `let` statement
582  --> $DIR/disallowed-positions-without-feature-gate.rs:228:13
583   |
584LL |     true || let 0 = 0;
585   |             ^^^
586   |
587   = note: only supported directly in conditions of `if` and `while` expressions
588
589error: expected expression, found `let` statement
590  --> $DIR/disallowed-positions-without-feature-gate.rs:230:14
591   |
592LL |     (true || let 0 = 0);
593   |              ^^^
594   |
595   = note: only supported directly in conditions of `if` and `while` expressions
596
597error: expected expression, found `let` statement
598  --> $DIR/disallowed-positions-without-feature-gate.rs:232:22
599   |
600LL |     true && (true || let 0 = 0);
601   |                      ^^^
602   |
603   = note: only supported directly in conditions of `if` and `while` expressions
604
605error: expected expression, found `let` statement
606  --> $DIR/disallowed-positions-without-feature-gate.rs:236:9
607   |
608LL |     x = let 0 = 0;
609   |         ^^^
610   |
611   = note: only supported directly in conditions of `if` and `while` expressions
612
613error: expected expression, found `let` statement
614  --> $DIR/disallowed-positions-without-feature-gate.rs:239:12
615   |
616LL |     true..(let 0 = 0);
617   |            ^^^
618   |
619   = note: only supported directly in conditions of `if` and `while` expressions
620
621error: expected expression, found `let` statement
622  --> $DIR/disallowed-positions-without-feature-gate.rs:241:8
623   |
624LL |     ..(let 0 = 0);
625   |        ^^^
626   |
627   = note: only supported directly in conditions of `if` and `while` expressions
628
629error: expected expression, found `let` statement
630  --> $DIR/disallowed-positions-without-feature-gate.rs:243:6
631   |
632LL |     (let 0 = 0)..;
633   |      ^^^
634   |
635   = note: only supported directly in conditions of `if` and `while` expressions
636
637error: expected expression, found `let` statement
638  --> $DIR/disallowed-positions-without-feature-gate.rs:246:6
639   |
640LL |     (let Range { start: _, end: _ } = true..true || false);
641   |      ^^^
642   |
643   = note: only supported directly in conditions of `if` and `while` expressions
644
645error: expected expression, found `let` statement
646  --> $DIR/disallowed-positions-without-feature-gate.rs:250:6
647   |
648LL |     (let true = let true = true);
649   |      ^^^
650   |
651   = note: only supported directly in conditions of `if` and `while` expressions
652
653error: expected expression, found `let` statement
654  --> $DIR/disallowed-positions-without-feature-gate.rs:250:17
655   |
656LL |     (let true = let true = true);
657   |                 ^^^
658   |
659   = note: only supported directly in conditions of `if` and `while` expressions
660
661error: expected expression, found `let` statement
662  --> $DIR/disallowed-positions-without-feature-gate.rs:256:25
663   |
664LL |         let x = true && let y = 1;
665   |                         ^^^
666   |
667   = note: only supported directly in conditions of `if` and `while` expressions
668
669error: expected expression, found `let` statement
670  --> $DIR/disallowed-positions-without-feature-gate.rs:262:19
671   |
672LL |         [1, 2, 3][let _ = ()]
673   |                   ^^^
674   |
675   = note: only supported directly in conditions of `if` and `while` expressions
676
677error: expected expression, found `let` statement
678  --> $DIR/disallowed-positions-without-feature-gate.rs:267:6
679   |
680LL |     &let 0 = 0
681   |      ^^^
682   |
683   = note: only supported directly in conditions of `if` and `while` expressions
684
685error: expected expression, found `let` statement
686  --> $DIR/disallowed-positions-without-feature-gate.rs:277:17
687   |
688LL |         true && let 1 = 1
689   |                 ^^^
690   |
691   = note: only supported directly in conditions of `if` and `while` expressions
692
693error: expected expression, found `let` statement
694  --> $DIR/disallowed-positions-without-feature-gate.rs:282:17
695   |
696LL |         true && let 1 = 1
697   |                 ^^^
698   |
699   = note: only supported directly in conditions of `if` and `while` expressions
700
701error: expected expression, found `let` statement
702  --> $DIR/disallowed-positions-without-feature-gate.rs:287:17
703   |
704LL |         true && let 1 = 1
705   |                 ^^^
706   |
707   = note: only supported directly in conditions of `if` and `while` expressions
708
709error: expected expression, found `let` statement
710  --> $DIR/disallowed-positions-without-feature-gate.rs:298:17
711   |
712LL |         true && let 1 = 1
713   |                 ^^^
714   |
715   = note: only supported directly in conditions of `if` and `while` expressions
716
717error: expressions must be enclosed in braces to be used as const generic arguments
718  --> $DIR/disallowed-positions-without-feature-gate.rs:298:9
719   |
720LL |         true && let 1 = 1
721   |         ^^^^^^^^^^^^^^^^^
722   |
723help: enclose the `const` expression in braces
724   |
725LL |         { true && let 1 = 1 }
726   |         +                   +
727
728error: expected expression, found `let` statement
729  --> $DIR/disallowed-positions-without-feature-gate.rs:307:9
730   |
731LL |     if (let Some(a) = opt && true) {
732   |         ^^^^^^^^^^^^^^^^^
733   |
734   = note: only supported directly in conditions of `if` and `while` expressions
735note: `let`s wrapped in parentheses are not supported in a context with let chains
736  --> $DIR/disallowed-positions-without-feature-gate.rs:307:9
737   |
738LL |     if (let Some(a) = opt && true) {
739   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
740
741error: expected expression, found `let` statement
742  --> $DIR/disallowed-positions-without-feature-gate.rs:311:9
743   |
744LL |     if (let Some(a) = opt) && true {
745   |         ^^^^^^^^^^^^^^^^^
746   |
747   = note: only supported directly in conditions of `if` and `while` expressions
748note: `let`s wrapped in parentheses are not supported in a context with let chains
749  --> $DIR/disallowed-positions-without-feature-gate.rs:311:9
750   |
751LL |     if (let Some(a) = opt) && true {
752   |         ^^^^^^^^^^^^^^^^^
753
754error: expected expression, found `let` statement
755  --> $DIR/disallowed-positions-without-feature-gate.rs:314:9
756   |
757LL |     if (let Some(a) = opt) && (let Some(b) = a) {
758   |         ^^^^^^^^^^^^^^^^^
759   |
760   = note: only supported directly in conditions of `if` and `while` expressions
761note: `let`s wrapped in parentheses are not supported in a context with let chains
762  --> $DIR/disallowed-positions-without-feature-gate.rs:314:9
763   |
764LL |     if (let Some(a) = opt) && (let Some(b) = a) {
765   |         ^^^^^^^^^^^^^^^^^
766
767error: expected expression, found `let` statement
768  --> $DIR/disallowed-positions-without-feature-gate.rs:314:32
769   |
770LL |     if (let Some(a) = opt) && (let Some(b) = a) {
771   |                                ^^^^^^^^^^^^^^^
772   |
773   = note: only supported directly in conditions of `if` and `while` expressions
774note: `let`s wrapped in parentheses are not supported in a context with let chains
775  --> $DIR/disallowed-positions-without-feature-gate.rs:314:32
776   |
777LL |     if (let Some(a) = opt) && (let Some(b) = a) {
778   |                                ^^^^^^^^^^^^^^^
779
780error: expected expression, found `let` statement
781  --> $DIR/disallowed-positions-without-feature-gate.rs:319:9
782   |
783LL |     if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
784   |         ^^^^^^^^^^^^^^^^^
785   |
786   = note: only supported directly in conditions of `if` and `while` expressions
787note: `let`s wrapped in parentheses are not supported in a context with let chains
788  --> $DIR/disallowed-positions-without-feature-gate.rs:319:9
789   |
790LL |     if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
791   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
792
793error: expected expression, found `let` statement
794  --> $DIR/disallowed-positions-without-feature-gate.rs:319:31
795   |
796LL |     if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
797   |                               ^^^^^^^^^^^^^^^
798   |
799   = note: only supported directly in conditions of `if` and `while` expressions
800note: `let`s wrapped in parentheses are not supported in a context with let chains
801  --> $DIR/disallowed-positions-without-feature-gate.rs:319:31
802   |
803LL |     if (let Some(a) = opt && (let Some(b) = a)) && b == 1 {
804   |                               ^^^^^^^^^^^^^^^
805
806error: expected expression, found `let` statement
807  --> $DIR/disallowed-positions-without-feature-gate.rs:323:9
808   |
809LL |     if (let Some(a) = opt && (let Some(b) = a)) && true {
810   |         ^^^^^^^^^^^^^^^^^
811   |
812   = note: only supported directly in conditions of `if` and `while` expressions
813note: `let`s wrapped in parentheses are not supported in a context with let chains
814  --> $DIR/disallowed-positions-without-feature-gate.rs:323:9
815   |
816LL |     if (let Some(a) = opt && (let Some(b) = a)) && true {
817   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
818
819error: expected expression, found `let` statement
820  --> $DIR/disallowed-positions-without-feature-gate.rs:323:31
821   |
822LL |     if (let Some(a) = opt && (let Some(b) = a)) && true {
823   |                               ^^^^^^^^^^^^^^^
824   |
825   = note: only supported directly in conditions of `if` and `while` expressions
826note: `let`s wrapped in parentheses are not supported in a context with let chains
827  --> $DIR/disallowed-positions-without-feature-gate.rs:323:31
828   |
829LL |     if (let Some(a) = opt && (let Some(b) = a)) && true {
830   |                               ^^^^^^^^^^^^^^^
831
832error: expected expression, found `let` statement
833  --> $DIR/disallowed-positions-without-feature-gate.rs:327:9
834   |
835LL |     if (let Some(a) = opt && (true)) && true {
836   |         ^^^^^^^^^^^^^^^^^
837   |
838   = note: only supported directly in conditions of `if` and `while` expressions
839note: `let`s wrapped in parentheses are not supported in a context with let chains
840  --> $DIR/disallowed-positions-without-feature-gate.rs:327:9
841   |
842LL |     if (let Some(a) = opt && (true)) && true {
843   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
844
845error: expected expression, found `let` statement
846  --> $DIR/disallowed-positions-without-feature-gate.rs:332:22
847   |
848LL |     let x = (true && let y = 1);
849   |                      ^^^
850   |
851   = note: only supported directly in conditions of `if` and `while` expressions
852
853error: expected expression, found `let` statement
854  --> $DIR/disallowed-positions-without-feature-gate.rs:337:20
855   |
856LL |         ([1, 2, 3][let _ = ()])
857   |                    ^^^
858   |
859   = note: only supported directly in conditions of `if` and `while` expressions
860
861error: expected expression, found `let` statement
862  --> $DIR/disallowed-positions-without-feature-gate.rs:63:16
863   |
864LL |     use_expr!((let 0 = 1 && 0 == 0));
865   |                ^^^
866   |
867   = note: only supported directly in conditions of `if` and `while` expressions
868
869error: expected expression, found `let` statement
870  --> $DIR/disallowed-positions-without-feature-gate.rs:65:16
871   |
872LL |     use_expr!((let 0 = 1));
873   |                ^^^
874   |
875   = note: only supported directly in conditions of `if` and `while` expressions
876
877error[E0308]: mismatched types
878  --> $DIR/disallowed-positions-without-feature-gate.rs:101:8
879   |
880LL |     if true..(let 0 = 0) {}
881   |        ^^^^^^^^^^^^^^^^^ expected `bool`, found `Range<bool>`
882   |
883   = note: expected type `bool`
884            found struct `std::ops::Range<bool>`
885
886error[E0308]: mismatched types
887  --> $DIR/disallowed-positions-without-feature-gate.rs:110:12
888   |
889LL |     if let Range { start: _, end: _ } = true..true && false {}
890   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^   ---- this expression has type `bool`
891   |            |
892   |            expected `bool`, found `Range<_>`
893   |
894   = note: expected type `bool`
895            found struct `std::ops::Range<_>`
896
897error[E0308]: mismatched types
898  --> $DIR/disallowed-positions-without-feature-gate.rs:113:12
899   |
900LL |     if let Range { start: _, end: _ } = true..true || false {}
901   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^   ---- this expression has type `bool`
902   |            |
903   |            expected `bool`, found `Range<_>`
904   |
905   = note: expected type `bool`
906            found struct `std::ops::Range<_>`
907
908error[E0308]: mismatched types
909  --> $DIR/disallowed-positions-without-feature-gate.rs:119:12
910   |
911LL |     if let Range { start: F, end } = F..|| true {}
912   |            ^^^^^^^^^^^^^^^^^^^^^^^   - this expression has type `fn() -> bool`
913   |            |
914   |            expected fn pointer, found `Range<_>`
915   |
916   = note: expected fn pointer `fn() -> bool`
917                  found struct `std::ops::Range<_>`
918
919error[E0308]: mismatched types
920  --> $DIR/disallowed-positions-without-feature-gate.rs:125:12
921   |
922LL |     if let Range { start: true, end } = t..&&false {}
923   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^   - this expression has type `&&bool`
924   |            |
925   |            expected `bool`, found `Range<_>`
926   |
927   = note: expected type `bool`
928            found struct `std::ops::Range<_>`
929
930error[E0277]: the `?` operator can only be applied to values that implement `Try`
931  --> $DIR/disallowed-positions-without-feature-gate.rs:81:20
932   |
933LL |         if let 0 = 0? {}
934   |                    ^^ the `?` operator cannot be applied to type `{integer}`
935   |
936   = help: the trait `Try` is not implemented for `{integer}`
937
938error[E0308]: mismatched types
939  --> $DIR/disallowed-positions-without-feature-gate.rs:165:11
940   |
941LL |     while true..(let 0 = 0) {}
942   |           ^^^^^^^^^^^^^^^^^ expected `bool`, found `Range<bool>`
943   |
944   = note: expected type `bool`
945            found struct `std::ops::Range<bool>`
946
947error[E0308]: mismatched types
948  --> $DIR/disallowed-positions-without-feature-gate.rs:174:15
949   |
950LL |     while let Range { start: _, end: _ } = true..true && false {}
951   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^   ---- this expression has type `bool`
952   |               |
953   |               expected `bool`, found `Range<_>`
954   |
955   = note: expected type `bool`
956            found struct `std::ops::Range<_>`
957
958error[E0308]: mismatched types
959  --> $DIR/disallowed-positions-without-feature-gate.rs:177:15
960   |
961LL |     while let Range { start: _, end: _ } = true..true || false {}
962   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^   ---- this expression has type `bool`
963   |               |
964   |               expected `bool`, found `Range<_>`
965   |
966   = note: expected type `bool`
967            found struct `std::ops::Range<_>`
968
969error[E0308]: mismatched types
970  --> $DIR/disallowed-positions-without-feature-gate.rs:183:15
971   |
972LL |     while let Range { start: F, end } = F..|| true {}
973   |               ^^^^^^^^^^^^^^^^^^^^^^^   - this expression has type `fn() -> bool`
974   |               |
975   |               expected fn pointer, found `Range<_>`
976   |
977   = note: expected fn pointer `fn() -> bool`
978                  found struct `std::ops::Range<_>`
979
980error[E0308]: mismatched types
981  --> $DIR/disallowed-positions-without-feature-gate.rs:189:15
982   |
983LL |     while let Range { start: true, end } = t..&&false {}
984   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^   - this expression has type `&&bool`
985   |               |
986   |               expected `bool`, found `Range<_>`
987   |
988   = note: expected type `bool`
989            found struct `std::ops::Range<_>`
990
991error[E0277]: the `?` operator can only be applied to values that implement `Try`
992  --> $DIR/disallowed-positions-without-feature-gate.rs:145:23
993   |
994LL |         while let 0 = 0? {}
995   |                       ^^ the `?` operator cannot be applied to type `{integer}`
996   |
997   = help: the trait `Try` is not implemented for `{integer}`
998
999error[E0308]: mismatched types
1000  --> $DIR/disallowed-positions-without-feature-gate.rs:246:10
1001   |
1002LL |     (let Range { start: _, end: _ } = true..true || false);
1003   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^   ---- this expression has type `bool`
1004   |          |
1005   |          expected `bool`, found `Range<_>`
1006   |
1007   = note: expected type `bool`
1008            found struct `std::ops::Range<_>`
1009
1010error[E0277]: the `?` operator can only be applied to values that implement `Try`
1011  --> $DIR/disallowed-positions-without-feature-gate.rs:221:17
1012   |
1013LL |         let 0 = 0?;
1014   |                 ^^ the `?` operator cannot be applied to type `{integer}`
1015   |
1016   = help: the trait `Try` is not implemented for `{integer}`
1017
1018error: aborting due to 105 previous errors
1019
1020Some errors have detailed explanations: E0277, E0308.
1021For more information about an error, try `rustc --explain E0277`.