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: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0572`.