1 error[E0572]: return statement outside of function body
2 --> $DIR/issue-86188-return-not-in-fn-body.rs:9:10
11 error[E0572]: return statement outside of function body
12 --> $DIR/issue-86188-return-not-in-fn-body.rs:20:14
17 | | ^^^^^^ the return is part of this body...
21 | |_____- ...not the enclosing function body
23 error[E0572]: return statement outside of function body
24 --> $DIR/issue-86188-return-not-in-fn-body.rs:28:14
29 | | ^^^^^^ the return is part of this body...
33 | |_____- ...not the enclosing function body
35 error[E0572]: return statement outside of function body
36 --> $DIR/issue-86188-return-not-in-fn-body.rs:36:10
40 LL | | [(); return || {
46 | ||_____^ the return is part of this body...
48 | |__- ...not the enclosing function body
50 error: aborting due to 4 previous errors
52 For more information about this error, try `rustc --explain E0572`.