rust/tests/ui/issues/issue-28109.rs
2023-01-11 09:32:08 +00:00

13 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
;
}
}