1 error: `let` expressions are not supported here
2 --> $DIR/disallowed-positions.rs:27:9
7 = note: only supported directly in conditions of `if`- and `while`-expressions
8 = note: as well as when nested within `&&` and parenthesis in those conditions
10 error: `let` expressions are not supported here
11 --> $DIR/disallowed-positions.rs:30:9
16 = note: only supported directly in conditions of `if`- and `while`-expressions
17 = note: as well as when nested within `&&` and parenthesis in those conditions
19 error: `let` expressions are not supported here
20 --> $DIR/disallowed-positions.rs:31:9
25 = note: only supported directly in conditions of `if`- and `while`-expressions
26 = note: as well as when nested within `&&` and parenthesis in those conditions
28 error: `let` expressions are not supported here
29 --> $DIR/disallowed-positions.rs:32:9
34 = note: only supported directly in conditions of `if`- and `while`-expressions
35 = note: as well as when nested within `&&` and parenthesis in those conditions
37 error: `let` expressions are not supported here
38 --> $DIR/disallowed-positions.rs:38:9
40 LL | if (let 0 = 0)? {}
43 = note: only supported directly in conditions of `if`- and `while`-expressions
44 = note: as well as when nested within `&&` and parenthesis in those conditions
46 error: `let` expressions are not supported here
47 --> $DIR/disallowed-positions.rs:40:16
49 LL | if true || let 0 = 0 {}
52 = note: only supported directly in conditions of `if`- and `while`-expressions
53 = note: as well as when nested within `&&` and parenthesis in those conditions
55 error: `let` expressions are not supported here
56 --> $DIR/disallowed-positions.rs:41:17
58 LL | if (true || let 0 = 0) {}
61 = note: only supported directly in conditions of `if`- and `while`-expressions
62 = note: as well as when nested within `&&` and parenthesis in those conditions
64 error: `let` expressions are not supported here
65 --> $DIR/disallowed-positions.rs:42:25
67 LL | if true && (true || let 0 = 0) {}
70 = note: only supported directly in conditions of `if`- and `while`-expressions
71 = note: as well as when nested within `&&` and parenthesis in those conditions
73 error: `let` expressions are not supported here
74 --> $DIR/disallowed-positions.rs:43:25
76 LL | if true || (true && let 0 = 0) {}
79 = note: only supported directly in conditions of `if`- and `while`-expressions
80 = note: as well as when nested within `&&` and parenthesis in those conditions
82 error: `let` expressions are not supported here
83 --> $DIR/disallowed-positions.rs:46:12
85 LL | if x = let 0 = 0 {}
88 = note: only supported directly in conditions of `if`- and `while`-expressions
89 = note: as well as when nested within `&&` and parenthesis in those conditions
91 error: `let` expressions are not supported here
92 --> $DIR/disallowed-positions.rs:48:15
94 LL | if true..(let 0 = 0) {}
97 = note: only supported directly in conditions of `if`- and `while`-expressions
98 = note: as well as when nested within `&&` and parenthesis in those conditions
100 error: `let` expressions are not supported here
101 --> $DIR/disallowed-positions.rs:49:11
103 LL | if ..(let 0 = 0) {}
106 = note: only supported directly in conditions of `if`- and `while`-expressions
107 = note: as well as when nested within `&&` and parenthesis in those conditions
109 error: `let` expressions are not supported here
110 --> $DIR/disallowed-positions.rs:50:9
112 LL | if (let 0 = 0).. {}
115 = note: only supported directly in conditions of `if`- and `while`-expressions
116 = note: as well as when nested within `&&` and parenthesis in those conditions
118 error: `let` expressions are not supported here
119 --> $DIR/disallowed-positions.rs:53:8
121 LL | if let Range { start: _, end: _ } = true..true && false {}
122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124 = note: only supported directly in conditions of `if`- and `while`-expressions
125 = note: as well as when nested within `&&` and parenthesis in those conditions
127 error: `let` expressions are not supported here
128 --> $DIR/disallowed-positions.rs:55:8
130 LL | if let Range { start: _, end: _ } = true..true || false {}
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 = note: only supported directly in conditions of `if`- and `while`-expressions
134 = note: as well as when nested within `&&` and parenthesis in those conditions
136 error: `let` expressions are not supported here
137 --> $DIR/disallowed-positions.rs:60:8
139 LL | if let Range { start: F, end } = F..|| true {}
140 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142 = note: only supported directly in conditions of `if`- and `while`-expressions
143 = note: as well as when nested within `&&` and parenthesis in those conditions
145 error: `let` expressions are not supported here
146 --> $DIR/disallowed-positions.rs:65:8
148 LL | if let Range { start: true, end } = t..&&false {}
149 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151 = note: only supported directly in conditions of `if`- and `while`-expressions
152 = note: as well as when nested within `&&` and parenthesis in those conditions
154 error: `let` expressions are not supported here
155 --> $DIR/disallowed-positions.rs:68:19
157 LL | if let true = let true = true {}
160 = note: only supported directly in conditions of `if`- and `while`-expressions
161 = note: as well as when nested within `&&` and parenthesis in those conditions
163 error: `let` expressions are not supported here
164 --> $DIR/disallowed-positions.rs:72:12
166 LL | while &let 0 = 0 {}
169 = note: only supported directly in conditions of `if`- and `while`-expressions
170 = note: as well as when nested within `&&` and parenthesis in those conditions
172 error: `let` expressions are not supported here
173 --> $DIR/disallowed-positions.rs:74:12
175 LL | while !let 0 = 0 {}
178 = note: only supported directly in conditions of `if`- and `while`-expressions
179 = note: as well as when nested within `&&` and parenthesis in those conditions
181 error: `let` expressions are not supported here
182 --> $DIR/disallowed-positions.rs:75:12
184 LL | while *let 0 = 0 {}
187 = note: only supported directly in conditions of `if`- and `while`-expressions
188 = note: as well as when nested within `&&` and parenthesis in those conditions
190 error: `let` expressions are not supported here
191 --> $DIR/disallowed-positions.rs:76:12
193 LL | while -let 0 = 0 {}
196 = note: only supported directly in conditions of `if`- and `while`-expressions
197 = note: as well as when nested within `&&` and parenthesis in those conditions
199 error: `let` expressions are not supported here
200 --> $DIR/disallowed-positions.rs:82:12
202 LL | while (let 0 = 0)? {}
205 = note: only supported directly in conditions of `if`- and `while`-expressions
206 = note: as well as when nested within `&&` and parenthesis in those conditions
208 error: `let` expressions are not supported here
209 --> $DIR/disallowed-positions.rs:84:19
211 LL | while true || let 0 = 0 {}
214 = note: only supported directly in conditions of `if`- and `while`-expressions
215 = note: as well as when nested within `&&` and parenthesis in those conditions
217 error: `let` expressions are not supported here
218 --> $DIR/disallowed-positions.rs:85:20
220 LL | while (true || let 0 = 0) {}
223 = note: only supported directly in conditions of `if`- and `while`-expressions
224 = note: as well as when nested within `&&` and parenthesis in those conditions
226 error: `let` expressions are not supported here
227 --> $DIR/disallowed-positions.rs:86:28
229 LL | while true && (true || let 0 = 0) {}
232 = note: only supported directly in conditions of `if`- and `while`-expressions
233 = note: as well as when nested within `&&` and parenthesis in those conditions
235 error: `let` expressions are not supported here
236 --> $DIR/disallowed-positions.rs:87:28
238 LL | while true || (true && let 0 = 0) {}
241 = note: only supported directly in conditions of `if`- and `while`-expressions
242 = note: as well as when nested within `&&` and parenthesis in those conditions
244 error: `let` expressions are not supported here
245 --> $DIR/disallowed-positions.rs:90:15
247 LL | while x = let 0 = 0 {}
250 = note: only supported directly in conditions of `if`- and `while`-expressions
251 = note: as well as when nested within `&&` and parenthesis in those conditions
253 error: `let` expressions are not supported here
254 --> $DIR/disallowed-positions.rs:92:18
256 LL | while true..(let 0 = 0) {}
259 = note: only supported directly in conditions of `if`- and `while`-expressions
260 = note: as well as when nested within `&&` and parenthesis in those conditions
262 error: `let` expressions are not supported here
263 --> $DIR/disallowed-positions.rs:93:14
265 LL | while ..(let 0 = 0) {}
268 = note: only supported directly in conditions of `if`- and `while`-expressions
269 = note: as well as when nested within `&&` and parenthesis in those conditions
271 error: `let` expressions are not supported here
272 --> $DIR/disallowed-positions.rs:94:12
274 LL | while (let 0 = 0).. {}
277 = note: only supported directly in conditions of `if`- and `while`-expressions
278 = note: as well as when nested within `&&` and parenthesis in those conditions
280 error: `let` expressions are not supported here
281 --> $DIR/disallowed-positions.rs:97:11
283 LL | while let Range { start: _, end: _ } = true..true && false {}
284 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
286 = note: only supported directly in conditions of `if`- and `while`-expressions
287 = note: as well as when nested within `&&` and parenthesis in those conditions
289 error: `let` expressions are not supported here
290 --> $DIR/disallowed-positions.rs:99:11
292 LL | while let Range { start: _, end: _ } = true..true || false {}
293 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295 = note: only supported directly in conditions of `if`- and `while`-expressions
296 = note: as well as when nested within `&&` and parenthesis in those conditions
298 error: `let` expressions are not supported here
299 --> $DIR/disallowed-positions.rs:104:11
301 LL | while let Range { start: F, end } = F..|| true {}
302 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
304 = note: only supported directly in conditions of `if`- and `while`-expressions
305 = note: as well as when nested within `&&` and parenthesis in those conditions
307 error: `let` expressions are not supported here
308 --> $DIR/disallowed-positions.rs:109:11
310 LL | while let Range { start: true, end } = t..&&false {}
311 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
313 = note: only supported directly in conditions of `if`- and `while`-expressions
314 = note: as well as when nested within `&&` and parenthesis in those conditions
316 error: `let` expressions are not supported here
317 --> $DIR/disallowed-positions.rs:112:22
319 LL | while let true = let true = true {}
322 = note: only supported directly in conditions of `if`- and `while`-expressions
323 = note: as well as when nested within `&&` and parenthesis in those conditions
325 error: `let` expressions are not supported here
326 --> $DIR/disallowed-positions.rs:126:6
331 = note: only supported directly in conditions of `if`- and `while`-expressions
332 = note: as well as when nested within `&&` and parenthesis in those conditions
334 error: `let` expressions are not supported here
335 --> $DIR/disallowed-positions.rs:128:6
340 = note: only supported directly in conditions of `if`- and `while`-expressions
341 = note: as well as when nested within `&&` and parenthesis in those conditions
343 error: `let` expressions are not supported here
344 --> $DIR/disallowed-positions.rs:129:6
349 = note: only supported directly in conditions of `if`- and `while`-expressions
350 = note: as well as when nested within `&&` and parenthesis in those conditions
352 error: `let` expressions are not supported here
353 --> $DIR/disallowed-positions.rs:130:6
358 = note: only supported directly in conditions of `if`- and `while`-expressions
359 = note: as well as when nested within `&&` and parenthesis in those conditions
361 error: `let` expressions are not supported here
362 --> $DIR/disallowed-positions.rs:136:6
367 = note: only supported directly in conditions of `if`- and `while`-expressions
368 = note: as well as when nested within `&&` and parenthesis in those conditions
370 error: `let` expressions are not supported here
371 --> $DIR/disallowed-positions.rs:138:13
373 LL | true || let 0 = 0;
376 = note: only supported directly in conditions of `if`- and `while`-expressions
377 = note: as well as when nested within `&&` and parenthesis in those conditions
379 error: `let` expressions are not supported here
380 --> $DIR/disallowed-positions.rs:139:14
382 LL | (true || let 0 = 0);
385 = note: only supported directly in conditions of `if`- and `while`-expressions
386 = note: as well as when nested within `&&` and parenthesis in those conditions
388 error: `let` expressions are not supported here
389 --> $DIR/disallowed-positions.rs:140:22
391 LL | true && (true || let 0 = 0);
394 = note: only supported directly in conditions of `if`- and `while`-expressions
395 = note: as well as when nested within `&&` and parenthesis in those conditions
397 error: `let` expressions are not supported here
398 --> $DIR/disallowed-positions.rs:143:9
403 = note: only supported directly in conditions of `if`- and `while`-expressions
404 = note: as well as when nested within `&&` and parenthesis in those conditions
406 error: `let` expressions are not supported here
407 --> $DIR/disallowed-positions.rs:145:12
409 LL | true..(let 0 = 0);
412 = note: only supported directly in conditions of `if`- and `while`-expressions
413 = note: as well as when nested within `&&` and parenthesis in those conditions
415 error: `let` expressions are not supported here
416 --> $DIR/disallowed-positions.rs:146:8
421 = note: only supported directly in conditions of `if`- and `while`-expressions
422 = note: as well as when nested within `&&` and parenthesis in those conditions
424 error: `let` expressions are not supported here
425 --> $DIR/disallowed-positions.rs:147:6
430 = note: only supported directly in conditions of `if`- and `while`-expressions
431 = note: as well as when nested within `&&` and parenthesis in those conditions
433 error: `let` expressions are not supported here
434 --> $DIR/disallowed-positions.rs:149:6
436 LL | (let Range { start: _, end: _ } = true..true || false);
437 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
439 = note: only supported directly in conditions of `if`- and `while`-expressions
440 = note: as well as when nested within `&&` and parenthesis in those conditions
442 error: `let` expressions are not supported here
443 --> $DIR/disallowed-positions.rs:152:6
445 LL | (let true = let true = true);
446 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
448 = note: only supported directly in conditions of `if`- and `while`-expressions
449 = note: as well as when nested within `&&` and parenthesis in those conditions
451 error: `let` expressions are not supported here
452 --> $DIR/disallowed-positions.rs:152:17
454 LL | (let true = let true = true);
457 = note: only supported directly in conditions of `if`- and `while`-expressions
458 = note: as well as when nested within `&&` and parenthesis in those conditions
460 error: `let` expressions are not supported here
461 --> $DIR/disallowed-positions.rs:157:6
466 = note: only supported directly in conditions of `if`- and `while`-expressions
467 = note: as well as when nested within `&&` and parenthesis in those conditions
469 error: `let` expressions only supported in `if`
470 --> $DIR/disallowed-positions.rs:27:9
472 LL | if &let 0 = 0 {}
475 error: aborting due to 53 previous errors