summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/array-break-length.rs
blob: 60589f7c264a612fe771d66ae61bb25c2055aeb3 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    loop {
        |_: [_; break]| {} //~ ERROR: `break` outside of a loop
    }

    loop {
        |_: [_; continue]| {} //~ ERROR: `continue` outside of a loop
    }
}