rust/tests/ui/for-loop-while/labeled-break.rs

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

23 lines
310 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
pub fn main() {
'foo: loop {
loop {
break 'foo;
}
}
2015-01-25 21:05:03 +00:00
'bar: for _ in 0..100 {
loop {
break 'bar;
}
}
2014-07-26 00:12:51 +00:00
2015-01-25 21:05:03 +00:00
'foobar: while 1 + 1 == 2 {
2014-07-26 00:12:51 +00:00
loop {
break 'foobar;
}
}
}