2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-05-02 09:47:07 -05:00
|
|
|
#[allow(unused)]
|
2015-07-17 13:05:41 -05:00
|
|
|
fn main() {
|
|
|
|
|| {
|
|
|
|
'label: loop {
|
|
|
|
}
|
|
|
|
};
|
2016-05-02 09:47:07 -05:00
|
|
|
|
|
|
|
// More cases added from issue 31754
|
|
|
|
|
|
|
|
'label2: loop {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
let closure = || {
|
|
|
|
'label2: loop {}
|
|
|
|
};
|
|
|
|
|
|
|
|
fn inner_fn() {
|
|
|
|
'label2: loop {}
|
|
|
|
}
|
2015-07-17 13:05:41 -05:00
|
|
|
}
|