]> git.proxmox.com Git - rustc.git/blame - src/test/ui/label/label_misspelled.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / label / label_misspelled.stderr
CommitLineData
fc512014 1error[E0425]: cannot find value `while_loop` in this scope
5869c6ff 2 --> $DIR/label_misspelled.rs:6:9
fc512014 3 |
5869c6ff
XL
4LL | 'while_loop: while true {
5 | ----------- a label with a similar name exists
6LL |
fc512014 7LL | while_loop;
5869c6ff 8 | ^^^^^^^^^^ not found in this scope
fc512014
XL
9
10error[E0425]: cannot find value `while_let` in this scope
11 --> $DIR/label_misspelled.rs:11:9
12 |
5869c6ff
XL
13LL | 'while_let: while let Some(_) = Some(()) {
14 | ---------- a label with a similar name exists
15LL |
fc512014 16LL | while_let;
5869c6ff 17 | ^^^^^^^^^ not found in this scope
fc512014
XL
18
19error[E0425]: cannot find value `for_loop` in this scope
5869c6ff 20 --> $DIR/label_misspelled.rs:16:9
fc512014 21 |
5869c6ff
XL
22LL | 'for_loop: for _ in 0..3 {
23 | --------- a label with a similar name exists
24LL |
fc512014 25LL | for_loop;
5869c6ff
XL
26 | ^^^^^^^^ not found in this scope
27
28error[E0425]: cannot find value `LOOP` in this scope
29 --> $DIR/label_misspelled.rs:21:9
30 |
31LL | 'LOOP: loop {
32 | ----- a label with a similar name exists
33LL |
34LL | LOOP;
35 | ^^^^ not found in this scope
36
37error[E0425]: cannot find value `LOOP` in this scope
38 --> $DIR/label_misspelled.rs:28:15
39 |
40LL | 'LOOP: loop {
41 | ----- a label with a similar name exists
42LL | break LOOP;
43 | ^^^^
44 | |
45 | not found in this scope
46 | help: use the similarly named label: `'LOOP`
47
48error[E0425]: cannot find value `while_loop` in this scope
49 --> $DIR/label_misspelled.rs:32:15
50 |
51LL | 'while_loop: while true {
52 | ----------- a label with a similar name exists
53LL | break while_loop;
54 | ^^^^^^^^^^
55 | |
56 | not found in this scope
57 | help: use the similarly named label: `'while_loop`
58
59error[E0425]: cannot find value `while_let` in this scope
60 --> $DIR/label_misspelled.rs:36:15
61 |
62LL | 'while_let: while let Some(_) = Some(()) {
63 | ---------- a label with a similar name exists
64LL | break while_let;
65 | ^^^^^^^^^
66 | |
67 | not found in this scope
68 | help: use the similarly named label: `'while_let`
69
70error[E0425]: cannot find value `for_loop` in this scope
71 --> $DIR/label_misspelled.rs:40:15
72 |
73LL | 'for_loop: for _ in 0..3 {
74 | --------- a label with a similar name exists
75LL | break for_loop;
76 | ^^^^^^^^
77 | |
78 | not found in this scope
79 | help: use the similarly named label: `'for_loop`
80
81warning: unused label
82 --> $DIR/label_misspelled.rs:4:5
83 |
84LL | 'while_loop: while true {
85 | ^^^^^^^^^^^
86 |
87note: the lint level is defined here
88 --> $DIR/label_misspelled.rs:1:9
89 |
90LL | #![warn(unused_labels)]
91 | ^^^^^^^^^^^^^
fc512014
XL
92
93warning: denote infinite loops with `loop { ... }`
5869c6ff 94 --> $DIR/label_misspelled.rs:4:5
fc512014
XL
95 |
96LL | 'while_loop: while true {
97 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
98 |
99 = note: `#[warn(while_true)]` on by default
100
5869c6ff
XL
101warning: unused label
102 --> $DIR/label_misspelled.rs:9:5
103 |
104LL | 'while_let: while let Some(_) = Some(()) {
105 | ^^^^^^^^^^
106
107warning: unused label
108 --> $DIR/label_misspelled.rs:14:5
109 |
110LL | 'for_loop: for _ in 0..3 {
111 | ^^^^^^^^^
112
113warning: unused label
114 --> $DIR/label_misspelled.rs:19:5
115 |
116LL | 'LOOP: loop {
117 | ^^^^^
118
119warning: denote infinite loops with `loop { ... }`
120 --> $DIR/label_misspelled.rs:31:5
121 |
122LL | 'while_loop: while true {
123 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
124
125warning: unused label
126 --> $DIR/label_misspelled.rs:47:5
127 |
128LL | 'while_loop: while true {
129 | ^^^^^^^^^^^
130
131warning: denote infinite loops with `loop { ... }`
132 --> $DIR/label_misspelled.rs:47:5
133 |
134LL | 'while_loop: while true {
135 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop`
136
137warning: unused label
138 --> $DIR/label_misspelled.rs:52:5
139 |
140LL | 'while_let: while let Some(_) = Some(()) {
141 | ^^^^^^^^^^
142
143warning: unused label
144 --> $DIR/label_misspelled.rs:57:5
145 |
146LL | 'for_loop: for _ in 0..3 {
147 | ^^^^^^^^^
148
149error[E0571]: `break` with value from a `while` loop
150 --> $DIR/label_misspelled.rs:49:9
151 |
152LL | 'while_loop: while true {
153 | ----------------------- you can't `break` with a value in a `while` loop
154LL |
155LL | break foo;
156 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
157 |
158help: use `break` on its own without a value inside this `while` loop
159 |
160LL | break;
94222f64 161 | ~~~~~
5869c6ff
XL
162help: alternatively, you might have meant to use the available loop label
163 |
164LL | break 'while_loop;
94222f64 165 | ~~~~~~~~~~~
5869c6ff
XL
166
167error[E0571]: `break` with value from a `while` loop
168 --> $DIR/label_misspelled.rs:54:9
169 |
170LL | 'while_let: while let Some(_) = Some(()) {
171 | ---------------------------------------- you can't `break` with a value in a `while` loop
172LL |
173LL | break foo;
174 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
175 |
176help: use `break` on its own without a value inside this `while` loop
177 |
178LL | break;
94222f64 179 | ~~~~~
5869c6ff
XL
180help: alternatively, you might have meant to use the available loop label
181 |
182LL | break 'while_let;
94222f64 183 | ~~~~~~~~~~
5869c6ff
XL
184
185error[E0571]: `break` with value from a `for` loop
186 --> $DIR/label_misspelled.rs:59:9
187 |
188LL | 'for_loop: for _ in 0..3 {
189 | ------------------------ you can't `break` with a value in a `for` loop
190LL |
191LL | break foo;
192 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block
193 |
194help: use `break` on its own without a value inside this `for` loop
195 |
196LL | break;
94222f64 197 | ~~~~~
5869c6ff
XL
198help: alternatively, you might have meant to use the available loop label
199 |
200LL | break 'for_loop;
94222f64 201 | ~~~~~~~~~
5869c6ff
XL
202
203error: aborting due to 11 previous errors; 10 warnings emitted
fc512014 204
5869c6ff
XL
205Some errors have detailed explanations: E0425, E0571.
206For more information about an error, try `rustc --explain E0425`.