1 error[E0425]: cannot find value `while_loop` in this scope
2 --> $DIR/label_misspelled.rs:6:9
4 LL | 'while_loop: while true {
5 | ----------- a label with a similar name exists
8 | ^^^^^^^^^^ not found in this scope
10 error[E0425]: cannot find value `while_let` in this scope
11 --> $DIR/label_misspelled.rs:11:9
13 LL | 'while_let: while let Some(_) = Some(()) {
14 | ---------- a label with a similar name exists
17 | ^^^^^^^^^ not found in this scope
19 error[E0425]: cannot find value `for_loop` in this scope
20 --> $DIR/label_misspelled.rs:16:9
22 LL | 'for_loop: for _ in 0..3 {
23 | --------- a label with a similar name exists
26 | ^^^^^^^^ not found in this scope
28 error[E0425]: cannot find value `LOOP` in this scope
29 --> $DIR/label_misspelled.rs:21:9
32 | ----- a label with a similar name exists
35 | ^^^^ not found in this scope
37 error[E0425]: cannot find value `LOOP` in this scope
38 --> $DIR/label_misspelled.rs:28:15
41 | ----- a label with a similar name exists
45 | not found in this scope
46 | help: use the similarly named label: `'LOOP`
48 error[E0425]: cannot find value `while_loop` in this scope
49 --> $DIR/label_misspelled.rs:32:15
51 LL | 'while_loop: while true {
52 | ----------- a label with a similar name exists
53 LL | break while_loop;
56 | not found in this scope
57 | help: use the similarly named label: `'while_loop`
59 error[E0425]: cannot find value `while_let` in this scope
60 --> $DIR/label_misspelled.rs:36:15
62 LL | 'while_let: while let Some(_) = Some(()) {
63 | ---------- a label with a similar name exists
67 | not found in this scope
68 | help: use the similarly named label: `'while_let`
70 error[E0425]: cannot find value `for_loop` in this scope
71 --> $DIR/label_misspelled.rs:40:15
73 LL | 'for_loop: for _ in 0..3 {
74 | --------- a label with a similar name exists
78 | not found in this scope
79 | help: use the similarly named label: `'for_loop`
82 --> $DIR/label_misspelled.rs:4:5
84 LL | 'while_loop: while true {
87 note: the lint level is defined here
88 --> $DIR/label_misspelled.rs:1:9
90 LL | #![warn(unused_labels)]
93 warning: denote infinite loops with `loop { ... }`
94 --> $DIR/label_misspelled.rs:4:5
96 LL | 'while_loop: while true {
97 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
99 = note: `#[warn(while_true)]` on by default
101 warning: unused label
102 --> $DIR/label_misspelled.rs:9:5
104 LL | 'while_let: while let Some(_) = Some(()) {
107 warning: unused label
108 --> $DIR/label_misspelled.rs:14:5
110 LL | 'for_loop: for _ in 0..3 {
113 warning: unused label
114 --> $DIR/label_misspelled.rs:19:5
119 warning: denote infinite loops with `loop { ... }`
120 --> $DIR/label_misspelled.rs:31:5
122 LL | 'while_loop: while true {
123 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
125 warning: unused label
126 --> $DIR/label_misspelled.rs:47:5
128 LL | 'while_loop: while true {
131 warning: denote infinite loops with `loop { ... }`
132 --> $DIR/label_misspelled.rs:47:5
134 LL | 'while_loop: while true {
135 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
137 warning: unused label
138 --> $DIR/label_misspelled.rs:52:5
140 LL | 'while_let: while let Some(_) = Some(()) {
143 warning: unused label
144 --> $DIR/label_misspelled.rs:57:5
146 LL | 'for_loop: for _ in 0..3 {
149 error[E0571]: `break` with value from a `while` loop
150 --> $DIR/label_misspelled.rs:49:9
152 LL | 'while_loop: while true {
153 | ----------------------- you can't `break` with a value in a `while` loop
156 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
158 help: use `break` on its own without a value inside this `while` loop
162 help: alternatively, you might have meant to use the available loop label
164 LL | break 'while_loop;
167 error[E0571]: `break` with value from a `while` loop
168 --> $DIR/label_misspelled.rs:54:9
170 LL | 'while_let: while let Some(_) = Some(()) {
171 | ---------------------------------------- you can't `break` with a value in a `while` loop
174 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
176 help: use `break` on its own without a value inside this `while` loop
180 help: alternatively, you might have meant to use the available loop label
182 LL | break 'while_let;
185 error[E0571]: `break` with value from a `for` loop
186 --> $DIR/label_misspelled.rs:59:9
188 LL | 'for_loop: for _ in 0..3 {
189 | ------------------------ you can't `break` with a value in a `for` loop
192 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
194 help: use `break` on its own without a value inside this `for` loop
198 help: alternatively, you might have meant to use the available loop label
200 LL | break 'for_loop;
203 error: aborting due to 11 previous errors; 10 warnings emitted
205 Some errors have detailed explanations: E0425, E0571.
206 For more information about an error, try `rustc --explain E0425`.