]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-62480.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / 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 }