summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-unticked-labels.fixed
blob: 159d995b8dad303c1c8e0b0c9d79b12b2fd8929f (plain)
1
2
3
4
5
6
7
// run-rustfix

fn main() {
    'label: loop { break 'label };    //~ error: cannot find value `label` in this scope
    'label: loop { break 'label 0 };  //~ error: expected a label, found an identifier
    'label: loop { continue 'label }; //~ error: expected a label, found an identifier
}