summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/closure-array-break-length.rs
blob: fda590fda022c442a8bcf4e2cd347669dbf5c7d9 (plain)
1
2
3
4
5
6
7
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
}