fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB63 linesraw
1error[E0572]: return statement outside of function body
2  --> $DIR/issue-51714.rs:6:13
3   |
4LL | / fn main() {
5LL | |
6LL | |
7LL | |
8LL | |
9LL | |     |_: [_; return || {}]| {};
10   | |             ^^^^^^^^^^^^ the return is part of this body...
11...  |
12LL | |
13LL | | }
14   | |_- ...not the enclosing function body
15
16error[E0572]: return statement outside of function body
17  --> $DIR/issue-51714.rs:10:10
18   |
19LL | / fn main() {
20LL | |
21LL | |
22LL | |
23...  |
24LL | |     [(); return || {}];
25   | |          ^^^^^^^^^^^^ the return is part of this body...
26...  |
27LL | |
28LL | | }
29   | |_- ...not the enclosing function body
30
31error[E0572]: return statement outside of function body
32  --> $DIR/issue-51714.rs:14:10
33   |
34LL | / fn main() {
35LL | |
36LL | |
37LL | |
38...  |
39LL | |     [(); return |ice| {}];
40   | |          ^^^^^^^^^^^^^^^ the return is part of this body...
41...  |
42LL | |
43LL | | }
44   | |_- ...not the enclosing function body
45
46error[E0572]: return statement outside of function body
47  --> $DIR/issue-51714.rs:18:10
48   |
49LL | / fn main() {
50LL | |
51LL | |
52LL | |
53...  |
54LL | |     [(); return while let Some(n) = Some(0) {}];
55   | |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the return is part of this body...
56LL | |
57LL | |
58LL | | }
59   | |_- ...not the enclosing function body
60
61error: aborting due to 4 previous errors
62
63For more information about this error, try `rustc --explain E0572`.