rust/tests/ui/issues/issue-28109.rs

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