]> git.lizzy.rs Git - rust.git/blob - src/test/ui/return/return-match-array-const.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / return / return-match-array-const.stderr
1 error[E0572]: return statement outside of function body
2   --> $DIR/return-match-array-const.rs:2:10
3    |
4 LL |     [(); return match 0 { n => n }];
5    |          ^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0572]: return statement outside of function body
8   --> $DIR/return-match-array-const.rs:5:10
9    |
10 LL |     [(); return match 0 { 0 => 0 }];
11    |          ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error[E0572]: return statement outside of function body
14   --> $DIR/return-match-array-const.rs:8:10
15    |
16 LL |     [(); return match () { 'a' => 0, _ => 0 }];
17    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0572`.