]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array-break-length.rs
Rollup merge of #60081 - pawroman:cleanup_unicode_script, r=varkor
[rust.git] / src / test / ui / array-break-length.rs
1 fn main() {
2     loop {
3         |_: [_; break]| {} //~ ERROR: `break` outside of loop
4         //~^ ERROR mismatched types
5     }
6
7     loop {
8         |_: [_; continue]| {} //~ ERROR: `continue` outside of loop
9         //~^ ERROR mismatched types
10     }
11 }