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

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