]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-51714.stderr
Fix another return-const ICE
[rust.git] / src / test / ui / issue-51714.stderr
1 error[E0572]: return statement outside of function body
2   --> $DIR/issue-51714.rs:12:14
3    |
4 LL |     |_:  [_; return || {}] | {};
5    |              ^^^^^^^^^^^^
6
7 error[E0572]: return statement outside of function body
8   --> $DIR/issue-51714.rs:15:10
9    |
10 LL |     [(); return || {}];
11    |          ^^^^^^^^^^^^
12
13 error[E0572]: return statement outside of function body
14   --> $DIR/issue-51714.rs:18:10
15    |
16 LL |     [(); return |ice| {}];
17    |          ^^^^^^^^^^^^^^^
18
19 error[E0572]: return statement outside of function body
20   --> $DIR/issue-51714.rs:21:10
21    |
22 LL |     [(); return while let Some(n) = Some(0) {}];
23    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0572`.