]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51714.stderr
Rollup merge of #53226 - QuietMisdreavus:editions-for-all, r=estebank
[rust.git] / src / test / ui / issues / issue-51714.stderr
1 error[E0572]: return statement outside of function body
2   --> $DIR/issue-51714.rs:12:14
3    |
4 LL |     |_:  [_; return || {}] | {};
5    |              ^^^^^^^^^^^^
6
7 error[E0572]: return statement outside of function body
8   --> $DIR/issue-51714.rs:15:10
9    |
10 LL |     [(); return || {}];
11    |          ^^^^^^^^^^^^
12
13 error[E0572]: return statement outside of function body
14   --> $DIR/issue-51714.rs:18:10
15    |
16 LL |     [(); return |ice| {}];
17    |          ^^^^^^^^^^^^^^^
18
19 error[E0572]: return statement outside of function body
20   --> $DIR/issue-51714.rs:21:10
21    |
22 LL |     [(); return while let Some(n) = Some(0) {}];
23    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error[E0165]: irrefutable while-let pattern
26   --> $DIR/issue-51714.rs:21:27
27    |
28 LL |     [(); return while let Some(n) = Some(0) {}];
29    |                           ^^^^^^^ irrefutable pattern
30
31 error: aborting due to 5 previous errors
32
33 Some errors occurred: E0165, E0572.
34 For more information about an error, try `rustc --explain E0165`.