10 lines
326 B
Rust
10 lines
326 B
Rust
#![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 `break` to unknown label
|
|
}
|
|
}
|