]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-62480.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-62480.rs
1 fn main() {
2     // This used to ICE during liveness check because `target_id` passed to
3     // `propagate_through_expr` would be the closure and not the `loop`, which wouldn't be found in
4     // `self.break_ln`. (#62480)
5     'a: {
6         || break 'a
7         //~^ ERROR use of unreachable label `'a`
8         //~| ERROR `break` inside of a closure
9     }
10 }