Why this fires¶
Two nested, simultaneously active loops declare the same label. A labelled exit would be ambiguous to readers even though the innermost declaration could be selected mechanically.
:scan loop {
:scan while ready() { // error[TE226]
break
}
}Fix it¶
Rename one label so every active target is unique.
:scan loop {
:retry while ready() {
break :scan
}
}See also¶
TE225— a referenced label has no active declaration.