2019-11-18 20:31:31 -06:00
|
|
|
fn main() {
|
|
|
|
// This used to ICE during liveness check because `target_id` passed to
|
|
|
|
// `propagate_through_expr` would be the closure and not the `loop`, which wouldn't be found in
|
|
|
|
// `self.break_ln`. (#62480)
|
|
|
|
'a: {
|
2020-06-25 09:16:38 -05:00
|
|
|
|| break 'a
|
|
|
|
//~^ ERROR use of unreachable label `'a`
|
|
|
|
//~| ERROR `break` inside of a closure
|
2019-11-18 20:31:31 -06:00
|
|
|
}
|
|
|
|
}
|