]> git.lizzy.rs Git - rust.git/blob - src/test/ui/label/label_misspelled_2.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / label / label_misspelled_2.rs
1 #![warn(unused_labels)]
2
3 fn main() {
4     'a: for _ in 0..1 {
5         break 'a;
6     }
7     'b: for _ in 0..1 {
8         break b; //~ ERROR cannot find value `b` in this scope
9     }
10     c: for _ in 0..1 { //~ ERROR malformed loop label
11         break 'c;
12     }
13     d: for _ in 0..1 { //~ ERROR malformed loop label
14         break d; //~ ERROR cannot find value `d` in this scope
15     }
16 }