summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-62480.rs
blob: 5c3be3e64ee1a8ffc579b4e3da5528d39393b5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(label_break_value)]

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: {
        || break 'a
        //~^ ERROR use of unreachable label `'a`
        //~| ERROR `break` inside of a closure
    }
}