merge privacy/privacy-sanity-2 with privacy/privacy-sanity.rs Add comment to generics/type-args-on-module-in-bound.rs Add comment to array-slice-vec/closure-in-array-eln.rs Add comment to array-slice-vec/return-in-array-len.rs Merge for-loop-while/break-outside-loop-2.rs with for-loop-while/break-outside-loop.rs Add comment to macros/column-macro-collision.rs Add comment to privacy/private-extern-fn-visibility.rs Add comment to mismatched_types/vec-hashset-type-mismatch.rs Merge std-sync-right-kind-impls-2.rs with std-sync-right-kind-impls.rs Add comment to array-slice-vec/slice-of-multi-ref.rs Add comment to mismatched_types\vec-hashset-type-mismatch.rs Add comment to derives/derive-hygiene-struct-builder.rs Add comment to label/undeclared-label-span.rs Add comment to label\undeclared-label-span.rs Add comment to mismatched_types/array-repeat-unit-struct.rs
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
error[E0572]: return statement outside of function body
|
|
--> $DIR/return-in-array-len.rs:7: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/return-in-array-len.rs:11: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/return-in-array-len.rs:15: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/return-in-array-len.rs:19: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`.
|