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 15:05:03 -06:00
'bar: for _ in 0..100 {
loop {
break 'bar;
}
}
2014-07-25 19:12:51 -05:00
2015-01-25 15:05:03 -06:00
'foobar: while 1 + 1 == 2 {
2014-07-25 19:12:51 -05:00
loop {
break 'foobar;
}
}
}