summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-51714.stderr
blob: 514d69c1c7d3985f6254d32fca7afaed5274189f (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
error[E0572]: return statement outside of function body
  --> $DIR/issue-51714.rs:6:14
   |
LL | / fn main() {
LL | |
LL | |
LL | |
LL | |
LL | |     |_:  [_; return || {}] | {};
   | |              ^^^^^^^^^^^^ the return is part of this body...
...  |
LL | |
LL | | }
   | |_- ...not the enclosing function body

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

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

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

error: aborting due to 4 previous errors

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