]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hygiene/hygienic-labels.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / hygiene / hygienic-labels.stderr
1 warning: label name `'x` shadows a label name that is already in scope
2 --> $DIR/hygienic-labels.rs:12:9
3 |
4 LL | 'x: loop { $e }
5 | ^^ lifetime 'x already in scope
6 ...
7 LL | 'x: for _ in 0..1 {
8 | -- first declared here
9 LL | // this 'x should refer to the outer loop, lexically
10 LL | loop_x!(break 'x);
11 | ------------------ in this macro invocation
12
13 warning: label name `'x` shadows a label name that is already in scope
14 --> $DIR/hygienic-labels.rs:37:5
15 |
16 LL | 'x: for _ in 0..1 {
17 | -- first declared here
18 ...
19 LL | 'x: loop {
20 | ^^ lifetime 'x already in scope
21
22 warning: label name `'x` shadows a label name that is already in scope
23 --> $DIR/hygienic-labels.rs:37:5
24 |
25 LL | 'x: loop { $e }
26 | -- first declared here
27 ...
28 LL | 'x: loop {
29 | ^^ lifetime 'x already in scope
30
31 warning: label name `'x` shadows a label name that is already in scope
32 --> $DIR/hygienic-labels.rs:12:9
33 |
34 LL | 'x: loop { $e }
35 | ^^ lifetime 'x already in scope
36 ...
37 LL | 'x: for _ in 0..1 {
38 | -- first declared here
39 ...
40 LL | loop_x!(break 'x);
41 | ------------------ in this macro invocation
42
43 warning: label name `'x` shadows a label name that is already in scope
44 --> $DIR/hygienic-labels.rs:12:9
45 |
46 LL | 'x: loop { $e }
47 | ^^
48 | |
49 | first declared here
50 | lifetime 'x already in scope
51 ...
52 LL | loop_x!(break 'x);
53 | ------------------ in this macro invocation
54
55 warning: label name `'x` shadows a label name that is already in scope
56 --> $DIR/hygienic-labels.rs:12:9
57 |
58 LL | 'x: loop { $e }
59 | ^^ lifetime 'x already in scope
60 ...
61 LL | 'x: loop {
62 | -- first declared here
63 LL | // ditto
64 LL | loop_x!(break 'x);
65 | ------------------ in this macro invocation
66
67 warning: label name `'x` shadows a label name that is already in scope
68 --> $DIR/hygienic-labels.rs:43:5
69 |
70 LL | 'x: for _ in 0..1 {
71 | -- first declared here
72 ...
73 LL | 'x: while 1 + 1 == 2 {
74 | ^^ lifetime 'x already in scope
75
76 warning: label name `'x` shadows a label name that is already in scope
77 --> $DIR/hygienic-labels.rs:43:5
78 |
79 LL | 'x: loop { $e }
80 | -- first declared here
81 ...
82 LL | 'x: while 1 + 1 == 2 {
83 | ^^ lifetime 'x already in scope
84
85 warning: label name `'x` shadows a label name that is already in scope
86 --> $DIR/hygienic-labels.rs:43:5
87 |
88 LL | 'x: loop {
89 | -- first declared here
90 ...
91 LL | 'x: while 1 + 1 == 2 {
92 | ^^ lifetime 'x already in scope
93
94 warning: label name `'x` shadows a label name that is already in scope
95 --> $DIR/hygienic-labels.rs:43:5
96 |
97 LL | 'x: loop { $e }
98 | -- first declared here
99 ...
100 LL | 'x: while 1 + 1 == 2 {
101 | ^^ lifetime 'x already in scope
102
103 warning: label name `'x` shadows a label name that is already in scope
104 --> $DIR/hygienic-labels.rs:26:9
105 |
106 LL | 'x: while 1 + 1 == 2 { $e }
107 | ^^ lifetime 'x already in scope
108 ...
109 LL | 'x: for _ in 0..1 {
110 | -- first declared here
111 ...
112 LL | while_x!(break 'x);
113 | ------------------- in this macro invocation
114
115 warning: label name `'x` shadows a label name that is already in scope
116 --> $DIR/hygienic-labels.rs:26:9
117 |
118 LL | 'x: loop { $e }
119 | -- first declared here
120 ...
121 LL | 'x: while 1 + 1 == 2 { $e }
122 | ^^ lifetime 'x already in scope
123 ...
124 LL | while_x!(break 'x);
125 | ------------------- in this macro invocation
126
127 warning: label name `'x` shadows a label name that is already in scope
128 --> $DIR/hygienic-labels.rs:26:9
129 |
130 LL | 'x: while 1 + 1 == 2 { $e }
131 | ^^ lifetime 'x already in scope
132 ...
133 LL | 'x: loop {
134 | -- first declared here
135 ...
136 LL | while_x!(break 'x);
137 | ------------------- in this macro invocation
138
139 warning: label name `'x` shadows a label name that is already in scope
140 --> $DIR/hygienic-labels.rs:26:9
141 |
142 LL | 'x: loop { $e }
143 | -- first declared here
144 ...
145 LL | 'x: while 1 + 1 == 2 { $e }
146 | ^^ lifetime 'x already in scope
147 ...
148 LL | while_x!(break 'x);
149 | ------------------- in this macro invocation
150
151 warning: label name `'x` shadows a label name that is already in scope
152 --> $DIR/hygienic-labels.rs:26:9
153 |
154 LL | 'x: while 1 + 1 == 2 { $e }
155 | ^^ lifetime 'x already in scope
156 ...
157 LL | 'x: while 1 + 1 == 2 {
158 | -- first declared here
159 LL | while_x!(break 'x);
160 | ------------------- in this macro invocation
161
162 warning: label name `'x` shadows a label name that is already in scope
163 --> $DIR/hygienic-labels.rs:48:5
164 |
165 LL | 'x: for _ in 0..1 {
166 | -- first declared here
167 ...
168 LL | 'x: for _ in 0..1 {
169 | ^^ lifetime 'x already in scope
170
171 warning: label name `'x` shadows a label name that is already in scope
172 --> $DIR/hygienic-labels.rs:48:5
173 |
174 LL | 'x: loop { $e }
175 | -- first declared here
176 ...
177 LL | 'x: for _ in 0..1 {
178 | ^^ lifetime 'x already in scope
179
180 warning: label name `'x` shadows a label name that is already in scope
181 --> $DIR/hygienic-labels.rs:48:5
182 |
183 LL | 'x: loop {
184 | -- first declared here
185 ...
186 LL | 'x: for _ in 0..1 {
187 | ^^ lifetime 'x already in scope
188
189 warning: label name `'x` shadows a label name that is already in scope
190 --> $DIR/hygienic-labels.rs:48:5
191 |
192 LL | 'x: loop { $e }
193 | -- first declared here
194 ...
195 LL | 'x: for _ in 0..1 {
196 | ^^ lifetime 'x already in scope
197
198 warning: label name `'x` shadows a label name that is already in scope
199 --> $DIR/hygienic-labels.rs:48:5
200 |
201 LL | 'x: while 1 + 1 == 2 {
202 | -- first declared here
203 ...
204 LL | 'x: for _ in 0..1 {
205 | ^^ lifetime 'x already in scope
206
207 warning: label name `'x` shadows a label name that is already in scope
208 --> $DIR/hygienic-labels.rs:48:5
209 |
210 LL | 'x: while 1 + 1 == 2 { $e }
211 | -- first declared here
212 ...
213 LL | 'x: for _ in 0..1 {
214 | ^^ lifetime 'x already in scope
215
216 warning: label name `'x` shadows a label name that is already in scope
217 --> $DIR/hygienic-labels.rs:19:9
218 |
219 LL | 'x: for _ in 0..1 { $e }
220 | ^^ lifetime 'x already in scope
221 ...
222 LL | 'x: for _ in 0..1 {
223 | -- first declared here
224 ...
225 LL | run_once!(continue 'x);
226 | ----------------------- in this macro invocation
227
228 warning: label name `'x` shadows a label name that is already in scope
229 --> $DIR/hygienic-labels.rs:19:9
230 |
231 LL | 'x: loop { $e }
232 | -- first declared here
233 ...
234 LL | 'x: for _ in 0..1 { $e }
235 | ^^ lifetime 'x already in scope
236 ...
237 LL | run_once!(continue 'x);
238 | ----------------------- in this macro invocation
239
240 warning: label name `'x` shadows a label name that is already in scope
241 --> $DIR/hygienic-labels.rs:19:9
242 |
243 LL | 'x: for _ in 0..1 { $e }
244 | ^^ lifetime 'x already in scope
245 ...
246 LL | 'x: loop {
247 | -- first declared here
248 ...
249 LL | run_once!(continue 'x);
250 | ----------------------- in this macro invocation
251
252 warning: label name `'x` shadows a label name that is already in scope
253 --> $DIR/hygienic-labels.rs:19:9
254 |
255 LL | 'x: loop { $e }
256 | -- first declared here
257 ...
258 LL | 'x: for _ in 0..1 { $e }
259 | ^^ lifetime 'x already in scope
260 ...
261 LL | run_once!(continue 'x);
262 | ----------------------- in this macro invocation
263
264 warning: label name `'x` shadows a label name that is already in scope
265 --> $DIR/hygienic-labels.rs:19:9
266 |
267 LL | 'x: for _ in 0..1 { $e }
268 | ^^ lifetime 'x already in scope
269 ...
270 LL | 'x: while 1 + 1 == 2 {
271 | -- first declared here
272 ...
273 LL | run_once!(continue 'x);
274 | ----------------------- in this macro invocation
275
276 warning: label name `'x` shadows a label name that is already in scope
277 --> $DIR/hygienic-labels.rs:19:9
278 |
279 LL | 'x: for _ in 0..1 { $e }
280 | ^^ lifetime 'x already in scope
281 ...
282 LL | 'x: while 1 + 1 == 2 { $e }
283 | -- first declared here
284 ...
285 LL | run_once!(continue 'x);
286 | ----------------------- in this macro invocation
287
288 warning: label name `'x` shadows a label name that is already in scope
289 --> $DIR/hygienic-labels.rs:19:9
290 |
291 LL | 'x: for _ in 0..1 { $e }
292 | ^^ lifetime 'x already in scope
293 ...
294 LL | 'x: for _ in 0..1 {
295 | -- first declared here
296 LL | // ditto
297 LL | run_once!(continue 'x);
298 | ----------------------- in this macro invocation
299