@@ -2,10 +2,7 @@ error[E0425]: cannot find value `while_loop` in this scope
22 --> $DIR/label_misspelled.rs:6:9
33 |
44LL | 'while_loop: while true {
5- | -----------
6- | |
7- | a label with a similar name exists
8- | a label with a similar name exists
5+ | ----------- a label with a similar name exists
96LL |
107LL | while_loop;
118 | ^^^^^^^^^^ not found in this scope
@@ -14,10 +11,7 @@ error[E0425]: cannot find value `while_let` in this scope
1411 --> $DIR/label_misspelled.rs:11:9
1512 |
1613LL | 'while_let: while let Some(_) = Some(()) {
17- | ----------
18- | |
19- | a label with a similar name exists
20- | a label with a similar name exists
14+ | ---------- a label with a similar name exists
2115LL |
2216LL | while_let;
2317 | ^^^^^^^^^ not found in this scope
@@ -26,10 +20,7 @@ error[E0425]: cannot find value `for_loop` in this scope
2620 --> $DIR/label_misspelled.rs:16:9
2721 |
2822LL | 'for_loop: for _ in 0..3 {
29- | ---------
30- | |
31- | a label with a similar name exists
32- | a label with a similar name exists
23+ | --------- a label with a similar name exists
3324LL |
3425LL | for_loop;
3526 | ^^^^^^^^ not found in this scope
@@ -38,10 +29,7 @@ error[E0425]: cannot find value `LOOP` in this scope
3829 --> $DIR/label_misspelled.rs:21:9
3930 |
4031LL | 'LOOP: loop {
41- | -----
42- | |
43- | a label with a similar name exists
44- | a label with a similar name exists
32+ | ----- a label with a similar name exists
4533LL |
4634LL | LOOP;
4735 | ^^^^ not found in this scope
@@ -50,81 +38,45 @@ error[E0425]: cannot find value `LOOP` in this scope
5038 --> $DIR/label_misspelled.rs:28:15
5139 |
5240LL | 'LOOP: loop {
53- | -----
54- | |
55- | a label with a similar name exists
56- | a label with a similar name exists
41+ | ----- a label with a similar name exists
5742LL | break LOOP;
58- | ^^^^ not found in this scope
59- |
60- help: use the similarly named label
61- |
62- LL | break 'LOOP;
63- | ~~~~~
64- help: use the similarly named label
65- |
66- LL | break 'LOOP;
67- | ~~~~~
43+ | ^^^^
44+ | |
45+ | not found in this scope
46+ | help: use the similarly named label: `'LOOP`
6847
6948error[E0425]: cannot find value `while_loop` in this scope
7049 --> $DIR/label_misspelled.rs:32:15
7150 |
7251LL | 'while_loop: while true {
73- | -----------
74- | |
75- | a label with a similar name exists
76- | a label with a similar name exists
52+ | ----------- a label with a similar name exists
7753LL | break while_loop;
78- | ^^^^^^^^^^ not found in this scope
79- |
80- help: use the similarly named label
81- |
82- LL | break 'while_loop;
83- | ~~~~~~~~~~~
84- help: use the similarly named label
85- |
86- LL | break 'while_loop;
87- | ~~~~~~~~~~~
54+ | ^^^^^^^^^^
55+ | |
56+ | not found in this scope
57+ | help: use the similarly named label: `'while_loop`
8858
8959error[E0425]: cannot find value `while_let` in this scope
9060 --> $DIR/label_misspelled.rs:36:15
9161 |
9262LL | 'while_let: while let Some(_) = Some(()) {
93- | ----------
94- | |
95- | a label with a similar name exists
96- | a label with a similar name exists
63+ | ---------- a label with a similar name exists
9764LL | break while_let;
98- | ^^^^^^^^^ not found in this scope
99- |
100- help: use the similarly named label
101- |
102- LL | break 'while_let;
103- | ~~~~~~~~~~
104- help: use the similarly named label
105- |
106- LL | break 'while_let;
107- | ~~~~~~~~~~
65+ | ^^^^^^^^^
66+ | |
67+ | not found in this scope
68+ | help: use the similarly named label: `'while_let`
10869
10970error[E0425]: cannot find value `for_loop` in this scope
11071 --> $DIR/label_misspelled.rs:40:15
11172 |
11273LL | 'for_loop: for _ in 0..3 {
113- | ---------
114- | |
115- | a label with a similar name exists
116- | a label with a similar name exists
74+ | --------- a label with a similar name exists
11775LL | break for_loop;
118- | ^^^^^^^^ not found in this scope
119- |
120- help: use the similarly named label
121- |
122- LL | break 'for_loop;
123- | ~~~~~~~~~
124- help: use the similarly named label
125- |
126- LL | break 'for_loop;
127- | ~~~~~~~~~
76+ | ^^^^^^^^
77+ | |
78+ | not found in this scope
79+ | help: use the similarly named label: `'for_loop`
12880
12981warning: unused label
13082 --> $DIR/label_misspelled.rs:4:5
0 commit comments