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