mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
12 lines
298 B
Rust
12 lines
298 B
Rust
fn main() {
|
|
loop {
|
|
let _: i32 = loop { break }; //~ ERROR mismatched types
|
|
}
|
|
loop {
|
|
let _: i32 = 'inner: loop { break 'inner }; //~ ERROR mismatched types
|
|
}
|
|
loop {
|
|
let _: i32 = 'inner2: loop { loop { break 'inner2 } }; //~ ERROR mismatched types
|
|
}
|
|
}
|