Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
closures
/
closure-array-break-length.rs
blob: fda590fda022c442a8bcf4e2cd347669dbf5c7d9 [
file
] [
log
] [
blame
]
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
}