summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-unticked-labels.rs
blob: 56034de68449fdda7695545035c3cd7b8c979b89 (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
}