A break
statement without a label appeared inside a labeled block.
Erroneous code example:
loop {
'a: {
break;
}
}
RunMake sure to always label the break
:
'l: loop {
'a: {
break 'l;
}
}
RunOr if you want to break
the labeled block:
loop {
'a: {
break 'a;
}
break;
}
Run