mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
241 B
Rust
12 lines
241 B
Rust
// Make sure that label for continue and break is spanned correctly
|
|
|
|
fn main() {
|
|
loop {
|
|
continue
|
|
'b //~ ERROR use of undeclared label
|
|
;
|
|
break
|
|
'c //~ ERROR use of undeclared label
|
|
;
|
|
}
|
|
}
|