]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/closure-array-break-length.rs
Rollup merge of #106831 - estebank:tickets_yaml, r=Mark-Simulacrum
[rust.git] / tests / ui / closures / closure-array-break-length.rs
1 fn main() {
2     |_: [_; continue]| {}; //~ ERROR: `continue` outside of a loop
3
4     while |_: [_; continue]| {} {} //~ ERROR: `continue` outside of a loop
5
6     while |_: [_; break]| {} {} //~ ERROR: `break` outside of a loop
7 }