Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
closures
/
closure-array-break-length.rs
blob: fda590fda022c442a8bcf4e2cd347669dbf5c7d9 [
file
] [
log
] [
blame
] [
edit
]
fn
main
()
{
|
_
:
[
_
;
continue
]|
{};
//~ ERROR: `continue` outside of a loop
while
|
_
:
[
_
;
continue
]|
{}
{}
//~ ERROR: `continue` outside of a loop
while
|
_
:
[
_
;
break
]|
{}
{}
//~ ERROR: `break` outside of a loop
}