rust/src/test/ui/array-break-length.rs
2019-05-28 21:34:42 +01:00

12 lines
251 B
Rust

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