]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/closure-array-break-length.rs
New upstream version 1.37.0+dfsg1
[rustc.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 }