2018-08-30 12:18:55 +00:00
|
|
|
// run-pass
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2013-04-26 23:19:26 +00:00
|
|
|
'foo: loop {
|
2012-08-15 02:20:56 +00:00
|
|
|
loop {
|
2013-04-26 23:19:26 +00:00
|
|
|
break 'foo;
|
2012-08-15 02:20:56 +00:00
|
|
|
}
|
|
|
|
}
|
2013-09-08 12:08:01 +00:00
|
|
|
|
2015-01-25 21:05:03 +00:00
|
|
|
'bar: for _ in 0..100 {
|
2013-09-08 12:08:01 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2012-08-15 02:20:56 +00:00
|
|
|
}
|