mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
12 lines
251 B
Rust
12 lines
251 B
Rust
fn main() {
|
|
loop {
|
|
|_: [_; break]| {} //~ ERROR: `break` outside of loop
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
loop {
|
|
|_: [_; continue]| {} //~ ERROR: `continue` outside of loop
|
|
//~^ ERROR mismatched types
|
|
}
|
|
}
|