about summary refs log tree commit diff
path: root/src/test/ui/array-break-length.rs
blob: ab15ce6e8d8e087d2adddf116de592e7ca82fb87 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    loop {
        |_: [_; break]| {} //~ ERROR: `break` outside of loop
    }

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