]> git.proxmox.com Git - rustc.git/blob - tests/ui/label/label_misspelled_2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }