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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
241 B
Rust
Raw Normal View History

// Make sure that label for continue and break is spanned correctly
fn main() {
2015-12-11 07:59:11 +00:00
loop {
continue
'b //~ ERROR use of undeclared label
;
break
'c //~ ERROR use of undeclared label
;
}
}