]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/recover-unticked-labels.fixed
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / recover-unticked-labels.fixed
1 // run-rustfix
2
3 fn main() {
4     'label: loop { break 'label };    //~ error: cannot find value `label` in this scope
5     'label: loop { break 'label 0 };  //~ error: expected a label, found an identifier
6     'label: loop { continue 'label }; //~ error: expected a label, found an identifier
7 }