|
1 | 1 | error[E0425]: cannot find value `LOOP` in this scope |
2 | 2 | --> $DIR/label_misspelled.rs:3:9 |
3 | 3 | | |
| 4 | +LL | 'LOOP: loop { |
| 5 | + | ----- a label with a similar name exists |
4 | 6 | LL | LOOP; |
5 | | - | ^^^^ |
6 | | - | | |
7 | | - | not found in this scope |
8 | | - | help: a label with a similar name exists: `'LOOP` |
| 7 | + | ^^^^ not found in this scope |
9 | 8 |
|
10 | 9 | error[E0425]: cannot find value `while_loop` in this scope |
11 | 10 | --> $DIR/label_misspelled.rs:7:9 |
12 | 11 | | |
| 12 | +LL | 'while_loop: while true { |
| 13 | + | ----------- a label with a similar name exists |
13 | 14 | LL | while_loop; |
14 | | - | ^^^^^^^^^^ |
15 | | - | | |
16 | | - | not found in this scope |
17 | | - | help: a label with a similar name exists: `'while_loop` |
| 15 | + | ^^^^^^^^^^ not found in this scope |
18 | 16 |
|
19 | 17 | error[E0425]: cannot find value `while_let` in this scope |
20 | 18 | --> $DIR/label_misspelled.rs:11:9 |
21 | 19 | | |
| 20 | +LL | 'while_let: while let Some(_) = Some(()) { |
| 21 | + | ---------- a label with a similar name exists |
22 | 22 | LL | while_let; |
23 | | - | ^^^^^^^^^ |
24 | | - | | |
25 | | - | not found in this scope |
26 | | - | help: a label with a similar name exists: `'while_let` |
| 23 | + | ^^^^^^^^^ not found in this scope |
27 | 24 |
|
28 | 25 | error[E0425]: cannot find value `for_loop` in this scope |
29 | 26 | --> $DIR/label_misspelled.rs:15:9 |
30 | 27 | | |
| 28 | +LL | 'for_loop: for _ in 0..3 { |
| 29 | + | --------- a label with a similar name exists |
31 | 30 | LL | for_loop; |
32 | | - | ^^^^^^^^ |
33 | | - | | |
34 | | - | not found in this scope |
35 | | - | help: a label with a similar name exists: `'for_loop` |
| 31 | + | ^^^^^^^^ not found in this scope |
36 | 32 |
|
37 | 33 | error[E0425]: cannot find value `LOOP` in this scope |
38 | 34 | --> $DIR/label_misspelled.rs:22:15 |
39 | 35 | | |
| 36 | +LL | 'LOOP: loop { |
| 37 | + | ----- a label with a similar name exists |
40 | 38 | LL | break LOOP; |
41 | 39 | | ^^^^ |
42 | 40 | | | |
43 | 41 | | not found in this scope |
44 | | - | help: a label with a similar name exists: `'LOOP` |
| 42 | + | help: use the similarly named label: `'LOOP` |
45 | 43 |
|
46 | 44 | error[E0425]: cannot find value `while_loop` in this scope |
47 | 45 | --> $DIR/label_misspelled.rs:26:15 |
48 | 46 | | |
| 47 | +LL | 'while_loop: while true { |
| 48 | + | ----------- a label with a similar name exists |
49 | 49 | LL | break while_loop; |
50 | 50 | | ^^^^^^^^^^ |
51 | 51 | | | |
52 | 52 | | not found in this scope |
53 | | - | help: a label with a similar name exists: `'while_loop` |
| 53 | + | help: use the similarly named label: `'while_loop` |
54 | 54 |
|
55 | 55 | error[E0425]: cannot find value `while_let` in this scope |
56 | 56 | --> $DIR/label_misspelled.rs:31:15 |
57 | 57 | | |
| 58 | +LL | 'while_let: while let Some(_) = Some(()) { |
| 59 | + | ---------- a label with a similar name exists |
58 | 60 | LL | break while_let; |
59 | 61 | | ^^^^^^^^^ |
60 | 62 | | | |
61 | 63 | | not found in this scope |
62 | | - | help: a label with a similar name exists: `'while_let` |
| 64 | + | help: use the similarly named label: `'while_let` |
63 | 65 |
|
64 | 66 | error[E0425]: cannot find value `for_loop` in this scope |
65 | 67 | --> $DIR/label_misspelled.rs:36:15 |
66 | 68 | | |
| 69 | +LL | 'for_loop: for _ in 0..3 { |
| 70 | + | --------- a label with a similar name exists |
67 | 71 | LL | break for_loop; |
68 | 72 | | ^^^^^^^^ |
69 | 73 | | | |
70 | 74 | | not found in this scope |
71 | | - | help: a label with a similar name exists: `'for_loop` |
| 75 | + | help: use the similarly named label: `'for_loop` |
72 | 76 |
|
73 | 77 | warning: denote infinite loops with `loop { ... }` |
74 | 78 | --> $DIR/label_misspelled.rs:6:5 |
|
0 commit comments