1 error[E0572]: return statement outside of function body
2 --> $DIR/issue-51714.rs:12:14
4 LL | |_: [_; return || {}] | {};
7 error[E0572]: return statement outside of function body
8 --> $DIR/issue-51714.rs:15:10
10 LL | [(); return || {}];
13 error[E0572]: return statement outside of function body
14 --> $DIR/issue-51714.rs:18:10
16 LL | [(); return |ice| {}];
19 error[E0572]: return statement outside of function body
20 --> $DIR/issue-51714.rs:21:10
22 LL | [(); return while let Some(n) = Some(0) {}];
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error[E0165]: irrefutable while-let pattern
26 --> $DIR/issue-51714.rs:21:27
28 LL | [(); return while let Some(n) = Some(0) {}];
29 | ^^^^^^^ irrefutable pattern
31 error: aborting due to 5 previous errors
33 Some errors occurred: E0165, E0572.
34 For more information about an error, try `rustc --explain E0165`.