rust/src/test/ui/array-break-length.rs
2018-12-25 21:08:33 -07:00

10 lines
179 B
Rust

fn main() {
loop {
|_: [_; break]| {} //~ ERROR: `break` outside of loop
}
loop {
|_: [_; continue]| {} //~ ERROR: `continue` outside of loop
}
}