]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-62480.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-62480.rs
1 #![feature(label_break_value)]
2
3 fn main() {
4     // This used to ICE during liveness check because `target_id` passed to
5     // `propagate_through_expr` would be the closure and not the `loop`, which wouldn't be found in
6     // `self.break_ln`. (#62480)
7     'a: {
8         || break 'a
9         //~^ ERROR use of unreachable label `'a`
10         //~| ERROR `break` inside of a closure
11     }
12 }