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