]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/closure-array-break-length.rs
Rollup merge of #61273 - RalfJung:maybe-uninit, r=Centril
[rust.git] / src / test / ui / closures / closure-array-break-length.rs
1 fn main() {
2     |_: [_; continue]| {}; //~ ERROR: `continue` outside of loop
3
4     while |_: [_; continue]| {} {} //~ ERROR: `continue` outside of loop
5     //~^ ERROR mismatched types
6
7     while |_: [_; break]| {} {} //~ ERROR: `break` outside of loop
8     //~^ ERROR mismatched types
9 }