rust/src/test/ui/closures/closure-array-break-length.rs
2020-04-16 19:00:30 +03:00

7 lines
227 B
Rust

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
}