Why this fires¶
break :label or continue :label names no lexically active loop. Labels do
not cross function or lambda boundaries. A spawned task (spawn expr or a
spawn { ... } block) and callbacks scheduled with every, after, or
timeout also start a new control-flow region, so they cannot jump to a loop
in the caller.
loop {
break :missing // error[TE225]
}Fix it¶
Spell the target exactly as it appears on an enclosing loop, or remove the label to target the innermost loop.
:search loop {
break :search
}