]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-type-bounds/duplicate.min_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / associated-type-bounds / duplicate.min_tait.stderr
CommitLineData
1b1a35ee 1error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 2 --> $DIR/duplicate.rs:10:36
dc9dc135
XL
3 |
4LL | struct SI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
5 | ---------- ^^^^^^^^^^ re-bound here
6 | |
7 | `Item` bound here first
8
1b1a35ee 9error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 10 --> $DIR/duplicate.rs:12:36
dc9dc135
XL
11 |
12LL | struct SI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
13 | ---------- ^^^^^^^^^^ re-bound here
14 | |
15 | `Item` bound here first
16
1b1a35ee 17error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 18 --> $DIR/duplicate.rs:14:39
dc9dc135
XL
19 |
20LL | struct SI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
21 | ------------- ^^^^^^^^^^^^^ re-bound here
22 | |
23 | `Item` bound here first
24
1b1a35ee 25error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 26 --> $DIR/duplicate.rs:16:45
dc9dc135
XL
27 |
28LL | struct SW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
29 | ---------- ^^^^^^^^^^ re-bound here
30 | |
31 | `Item` bound here first
32
1b1a35ee 33error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 34 --> $DIR/duplicate.rs:18:45
dc9dc135
XL
35 |
36LL | struct SW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
37 | ---------- ^^^^^^^^^^ re-bound here
38 | |
39 | `Item` bound here first
40
1b1a35ee 41error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 42 --> $DIR/duplicate.rs:20:48
dc9dc135
XL
43 |
44LL | struct SW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
45 | ------------- ^^^^^^^^^^^^^ re-bound here
46 | |
47 | `Item` bound here first
48
1b1a35ee 49error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 50 --> $DIR/duplicate.rs:23:34
dc9dc135
XL
51 |
52LL | enum EI1<T: Iterator<Item: Copy, Item: Send>> { V(T) }
53 | ---------- ^^^^^^^^^^ re-bound here
54 | |
55 | `Item` bound here first
56
1b1a35ee 57error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 58 --> $DIR/duplicate.rs:25:34
dc9dc135
XL
59 |
60LL | enum EI2<T: Iterator<Item: Copy, Item: Copy>> { V(T) }
61 | ---------- ^^^^^^^^^^ re-bound here
62 | |
63 | `Item` bound here first
64
1b1a35ee 65error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 66 --> $DIR/duplicate.rs:27:37
dc9dc135
XL
67 |
68LL | enum EI3<T: Iterator<Item: 'static, Item: 'static>> { V(T) }
69 | ------------- ^^^^^^^^^^^^^ re-bound here
70 | |
71 | `Item` bound here first
72
1b1a35ee 73error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 74 --> $DIR/duplicate.rs:29:43
dc9dc135
XL
75 |
76LL | enum EW1<T> where T: Iterator<Item: Copy, Item: Send> { V(T) }
77 | ---------- ^^^^^^^^^^ re-bound here
78 | |
79 | `Item` bound here first
80
1b1a35ee 81error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 82 --> $DIR/duplicate.rs:31:43
dc9dc135
XL
83 |
84LL | enum EW2<T> where T: Iterator<Item: Copy, Item: Copy> { V(T) }
85 | ---------- ^^^^^^^^^^ re-bound here
86 | |
87 | `Item` bound here first
88
1b1a35ee 89error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 90 --> $DIR/duplicate.rs:33:46
dc9dc135
XL
91 |
92LL | enum EW3<T> where T: Iterator<Item: 'static, Item: 'static> { V(T) }
93 | ------------- ^^^^^^^^^^^^^ re-bound here
94 | |
95 | `Item` bound here first
96
1b1a35ee 97error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 98 --> $DIR/duplicate.rs:36:35
dc9dc135
XL
99 |
100LL | union UI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
101 | ---------- ^^^^^^^^^^ re-bound here
102 | |
103 | `Item` bound here first
104
1b1a35ee 105error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 106 --> $DIR/duplicate.rs:38:35
dc9dc135
XL
107 |
108LL | union UI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
109 | ---------- ^^^^^^^^^^ re-bound here
110 | |
111 | `Item` bound here first
112
1b1a35ee 113error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 114 --> $DIR/duplicate.rs:40:38
dc9dc135
XL
115 |
116LL | union UI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
117 | ------------- ^^^^^^^^^^^^^ re-bound here
118 | |
119 | `Item` bound here first
120
1b1a35ee 121error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 122 --> $DIR/duplicate.rs:42:44
dc9dc135
XL
123 |
124LL | union UW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
125 | ---------- ^^^^^^^^^^ re-bound here
126 | |
127 | `Item` bound here first
128
1b1a35ee 129error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 130 --> $DIR/duplicate.rs:44:44
dc9dc135
XL
131 |
132LL | union UW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
133 | ---------- ^^^^^^^^^^ re-bound here
134 | |
135 | `Item` bound here first
136
1b1a35ee 137error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 138 --> $DIR/duplicate.rs:46:47
dc9dc135
XL
139 |
140LL | union UW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
141 | ------------- ^^^^^^^^^^^^^ re-bound here
142 | |
143 | `Item` bound here first
144
1b1a35ee 145error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 146 --> $DIR/duplicate.rs:49:32
dc9dc135
XL
147 |
148LL | fn FI1<T: Iterator<Item: Copy, Item: Send>>() {}
149 | ---------- ^^^^^^^^^^ re-bound here
150 | |
151 | `Item` bound here first
152
1b1a35ee 153error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 154 --> $DIR/duplicate.rs:51:32
dc9dc135
XL
155 |
156LL | fn FI2<T: Iterator<Item: Copy, Item: Copy>>() {}
157 | ---------- ^^^^^^^^^^ re-bound here
158 | |
159 | `Item` bound here first
160
1b1a35ee 161error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 162 --> $DIR/duplicate.rs:53:35
dc9dc135
XL
163 |
164LL | fn FI3<T: Iterator<Item: 'static, Item: 'static>>() {}
165 | ------------- ^^^^^^^^^^^^^ re-bound here
166 | |
167 | `Item` bound here first
168
1b1a35ee 169error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 170 --> $DIR/duplicate.rs:55:43
dc9dc135
XL
171 |
172LL | fn FW1<T>() where T: Iterator<Item: Copy, Item: Send> {}
173 | ---------- ^^^^^^^^^^ re-bound here
174 | |
175 | `Item` bound here first
176
1b1a35ee 177error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 178 --> $DIR/duplicate.rs:57:43
dc9dc135
XL
179 |
180LL | fn FW2<T>() where T: Iterator<Item: Copy, Item: Copy> {}
181 | ---------- ^^^^^^^^^^ re-bound here
182 | |
183 | `Item` bound here first
184
1b1a35ee 185error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 186 --> $DIR/duplicate.rs:59:46
dc9dc135
XL
187 |
188LL | fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
189 | ------------- ^^^^^^^^^^^^^ re-bound here
190 | |
191 | `Item` bound here first
192
1b1a35ee 193error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 194 --> $DIR/duplicate.rs:65:40
dc9dc135
XL
195 |
196LL | fn FAPIT1(_: impl Iterator<Item: Copy, Item: Send>) {}
197 | ---------- ^^^^^^^^^^ re-bound here
198 | |
199 | `Item` bound here first
200
1b1a35ee 201error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 202 --> $DIR/duplicate.rs:67:40
dc9dc135
XL
203 |
204LL | fn FAPIT2(_: impl Iterator<Item: Copy, Item: Copy>) {}
205 | ---------- ^^^^^^^^^^ re-bound here
206 | |
207 | `Item` bound here first
208
1b1a35ee 209error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 210 --> $DIR/duplicate.rs:69:43
dc9dc135
XL
211 |
212LL | fn FAPIT3(_: impl Iterator<Item: 'static, Item: 'static>) {}
213 | ------------- ^^^^^^^^^^^^^ re-bound here
214 | |
215 | `Item` bound here first
216
1b1a35ee 217error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 218 --> $DIR/duplicate.rs:72:35
dc9dc135
XL
219 |
220LL | type TAI1<T: Iterator<Item: Copy, Item: Send>> = T;
221 | ---------- ^^^^^^^^^^ re-bound here
222 | |
223 | `Item` bound here first
224
1b1a35ee 225error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 226 --> $DIR/duplicate.rs:74:35
dc9dc135
XL
227 |
228LL | type TAI2<T: Iterator<Item: Copy, Item: Copy>> = T;
229 | ---------- ^^^^^^^^^^ re-bound here
230 | |
231 | `Item` bound here first
232
1b1a35ee 233error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 234 --> $DIR/duplicate.rs:76:38
dc9dc135
XL
235 |
236LL | type TAI3<T: Iterator<Item: 'static, Item: 'static>> = T;
237 | ------------- ^^^^^^^^^^^^^ re-bound here
238 | |
239 | `Item` bound here first
240
1b1a35ee 241error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 242 --> $DIR/duplicate.rs:78:44
dc9dc135
XL
243 |
244LL | type TAW1<T> where T: Iterator<Item: Copy, Item: Send> = T;
245 | ---------- ^^^^^^^^^^ re-bound here
246 | |
247 | `Item` bound here first
248
1b1a35ee 249error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 250 --> $DIR/duplicate.rs:80:44
dc9dc135
XL
251 |
252LL | type TAW2<T> where T: Iterator<Item: Copy, Item: Copy> = T;
253 | ---------- ^^^^^^^^^^ re-bound here
254 | |
255 | `Item` bound here first
256
1b1a35ee 257error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 258 --> $DIR/duplicate.rs:82:47
dc9dc135
XL
259 |
260LL | type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
261 | ------------- ^^^^^^^^^^^^^ re-bound here
262 | |
263 | `Item` bound here first
264
1b1a35ee 265error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 266 --> $DIR/duplicate.rs:85:36
dc9dc135 267 |
416331ca
XL
268LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
269 | ---------- ^^^^^^^^^^ re-bound here
270 | |
271 | `Item` bound here first
dc9dc135 272
1b1a35ee 273error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 274 --> $DIR/duplicate.rs:87:36
dc9dc135 275 |
416331ca
XL
276LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
277 | ---------- ^^^^^^^^^^ re-bound here
278 | |
279 | `Item` bound here first
dc9dc135 280
1b1a35ee 281error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 282 --> $DIR/duplicate.rs:89:39
dc9dc135 283 |
416331ca
XL
284LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
285 | ------------- ^^^^^^^^^^^^^ re-bound here
286 | |
287 | `Item` bound here first
dc9dc135 288
1b1a35ee 289error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 290 --> $DIR/duplicate.rs:91:40
dc9dc135 291 |
416331ca
XL
292LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
293 | ---------- ^^^^^^^^^^ re-bound here
294 | |
295 | `Item` bound here first
dc9dc135 296
1b1a35ee 297error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 298 --> $DIR/duplicate.rs:93:40
dc9dc135 299 |
416331ca
XL
300LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
301 | ---------- ^^^^^^^^^^ re-bound here
302 | |
303 | `Item` bound here first
dc9dc135 304
1b1a35ee 305error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 306 --> $DIR/duplicate.rs:95:43
dc9dc135 307 |
416331ca
XL
308LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
309 | ------------- ^^^^^^^^^^^^^ re-bound here
310 | |
311 | `Item` bound here first
dc9dc135 312
1b1a35ee 313error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 314 --> $DIR/duplicate.rs:98:36
dc9dc135
XL
315 |
316LL | trait TRI1<T: Iterator<Item: Copy, Item: Send>> {}
317 | ---------- ^^^^^^^^^^ re-bound here
318 | |
319 | `Item` bound here first
320
1b1a35ee 321error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 322 --> $DIR/duplicate.rs:100:36
dc9dc135
XL
323 |
324LL | trait TRI2<T: Iterator<Item: Copy, Item: Copy>> {}
325 | ---------- ^^^^^^^^^^ re-bound here
326 | |
327 | `Item` bound here first
328
1b1a35ee 329error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 330 --> $DIR/duplicate.rs:102:39
dc9dc135
XL
331 |
332LL | trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
333 | ------------- ^^^^^^^^^^^^^ re-bound here
334 | |
335 | `Item` bound here first
336
1b1a35ee 337error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 338 --> $DIR/duplicate.rs:104:34
dc9dc135
XL
339 |
340LL | trait TRS1: Iterator<Item: Copy, Item: Send> {}
341 | ---------- ^^^^^^^^^^ re-bound here
342 | |
343 | `Item` bound here first
344
1b1a35ee 345error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 346 --> $DIR/duplicate.rs:106:34
dc9dc135
XL
347 |
348LL | trait TRS2: Iterator<Item: Copy, Item: Copy> {}
349 | ---------- ^^^^^^^^^^ re-bound here
350 | |
351 | `Item` bound here first
352
1b1a35ee 353error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 354 --> $DIR/duplicate.rs:108:37
dc9dc135
XL
355 |
356LL | trait TRS3: Iterator<Item: 'static, Item: 'static> {}
357 | ------------- ^^^^^^^^^^^^^ re-bound here
358 | |
359 | `Item` bound here first
360
1b1a35ee 361error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 362 --> $DIR/duplicate.rs:110:45
dc9dc135
XL
363 |
364LL | trait TRW1<T> where T: Iterator<Item: Copy, Item: Send> {}
365 | ---------- ^^^^^^^^^^ re-bound here
366 | |
367 | `Item` bound here first
368
1b1a35ee 369error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 370 --> $DIR/duplicate.rs:112:45
dc9dc135
XL
371 |
372LL | trait TRW2<T> where T: Iterator<Item: Copy, Item: Copy> {}
373 | ---------- ^^^^^^^^^^ re-bound here
374 | |
375 | `Item` bound here first
376
1b1a35ee 377error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 378 --> $DIR/duplicate.rs:114:48
dc9dc135
XL
379 |
380LL | trait TRW3<T> where T: Iterator<Item: 'static, Item: 'static> {}
381 | ------------- ^^^^^^^^^^^^^ re-bound here
382 | |
383 | `Item` bound here first
384
1b1a35ee 385error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 386 --> $DIR/duplicate.rs:116:46
dc9dc135
XL
387 |
388LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
389 | ---------- ^^^^^^^^^^ re-bound here
390 | |
391 | `Item` bound here first
392
1b1a35ee 393error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 394 --> $DIR/duplicate.rs:116:46
dfeec247
XL
395 |
396LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
397 | ---------- ^^^^^^^^^^ re-bound here
398 | |
399 | `Item` bound here first
400
1b1a35ee 401error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 402 --> $DIR/duplicate.rs:119:46
dc9dc135
XL
403 |
404LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
405 | ---------- ^^^^^^^^^^ re-bound here
406 | |
407 | `Item` bound here first
408
1b1a35ee 409error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 410 --> $DIR/duplicate.rs:119:46
dfeec247
XL
411 |
412LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
413 | ---------- ^^^^^^^^^^ re-bound here
414 | |
415 | `Item` bound here first
416
1b1a35ee 417error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 418 --> $DIR/duplicate.rs:122:49
dfeec247
XL
419 |
420LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
421 | ------------- ^^^^^^^^^^^^^ re-bound here
422 | |
423 | `Item` bound here first
424
1b1a35ee 425error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 426 --> $DIR/duplicate.rs:122:49
dc9dc135
XL
427 |
428LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
429 | ------------- ^^^^^^^^^^^^^ re-bound here
430 | |
431 | `Item` bound here first
432
1b1a35ee 433error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 434 --> $DIR/duplicate.rs:132:40
dc9dc135
XL
435 |
436LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
437 | ---------- ^^^^^^^^^^ re-bound here
438 | |
439 | `Item` bound here first
440
1b1a35ee 441error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 442 --> $DIR/duplicate.rs:134:44
dc9dc135
XL
443 |
444LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
445 | ---------- ^^^^^^^^^^ re-bound here
446 | |
447 | `Item` bound here first
448
1b1a35ee 449error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 450 --> $DIR/duplicate.rs:136:43
dc9dc135
XL
451 |
452LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
453 | ------------- ^^^^^^^^^^^^^ re-bound here
454 | |
455 | `Item` bound here first
456
29967ef6 457error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 458 --> $DIR/duplicate.rs:125:43
29967ef6
XL
459 |
460LL | trait TRA1 { type A: Iterator<Item: Copy, Item: Send>; }
461 | ---------- ^^^^^^^^^^ re-bound here
462 | |
463 | `Item` bound here first
464
465error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 466 --> $DIR/duplicate.rs:127:43
29967ef6
XL
467 |
468LL | trait TRA2 { type A: Iterator<Item: Copy, Item: Copy>; }
469 | ---------- ^^^^^^^^^^ re-bound here
470 | |
471 | `Item` bound here first
472
473error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
136023e0 474 --> $DIR/duplicate.rs:129:46
29967ef6
XL
475 |
476LL | trait TRA3 { type A: Iterator<Item: 'static, Item: 'static>; }
477 | ------------- ^^^^^^^^^^^^^ re-bound here
478 | |
479 | `Item` bound here first
480
136023e0 481error: aborting due to 60 previous errors
dc9dc135 482
74b04a01 483For more information about this error, try `rustc --explain E0719`.