about summary refs log tree commit diff
path: root/tests/ui/issues/issue-51714.stderr
blob: da3e3caea29a37859661f04f0702c479d402626d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
error[E0572]: return statement outside of function body
  --> $DIR/issue-51714.rs:6:13
   |
LL | / fn main() {
...  |
LL | |     |_: [_; return || {}]| {};
   | |             ^^^^^^^^^^^^ the return is part of this body...
...  |
LL | | }
   | |_- ...not the enclosing function body

error[E0572]: return statement outside of function body
  --> $DIR/issue-51714.rs:10:10
   |
LL | / fn main() {
...  |
LL | |     [(); return || {}];
   | |          ^^^^^^^^^^^^ the return is part of this body...
...  |
LL | | }
   | |_- ...not the enclosing function body

error[E0572]: return statement outside of function body
  --> $DIR/issue-51714.rs:14:10
   |
LL | / fn main() {
...  |
LL | |     [(); return |ice| {}];
   | |          ^^^^^^^^^^^^^^^ the return is part of this body...
...  |
LL | | }
   | |_- ...not the enclosing function body

error[E0572]: return statement outside of function body
  --> $DIR/issue-51714.rs:18:10
   |
LL | / fn main() {
...  |
LL | |     [(); return while let Some(n) = Some(0) {}];
   | |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
...  |
LL | | }
   | |_- ...not the enclosing function body

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0572`.