1 error[E0572]: return statement outside of function body
2 --> $DIR/return-match-array-const.rs:2:10
4 LL | [(); return match 0 { n => n }];
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 error[E0572]: return statement outside of function body
8 --> $DIR/return-match-array-const.rs:5:10
10 LL | [(); return match 0 { 0 => 0 }];
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
13 error[E0572]: return statement outside of function body
14 --> $DIR/return-match-array-const.rs:8:10
16 LL | [(); return match () { 'a' => 0, _ => 0 }];
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0572`.