1
1
error[E0107]: missing generics for associated type `SVec::Item`
2
- --> $DIR/issue-105742.rs:12 :21
2
+ --> $DIR/issue-105742.rs:15 :21
3
3
|
4
4
LL | <Self as SVec>::Item,
5
5
| ^^^^ expected 1 lifetime argument
6
6
|
7
7
note: associated type defined here, with 1 lifetime parameter: `'a`
8
- --> $DIR/issue-105742.rs:32 :10
8
+ --> $DIR/issue-105742.rs:43 :10
9
9
|
10
10
LL | type Item<'a, T>;
11
11
| ^^^^ --
@@ -15,13 +15,13 @@ LL | <Self as SVec>::Item<'a>,
15
15
| ++++
16
16
17
17
error[E0107]: missing generics for associated type `SVec::Item`
18
- --> $DIR/issue-105742.rs:12 :21
18
+ --> $DIR/issue-105742.rs:15 :21
19
19
|
20
20
LL | <Self as SVec>::Item,
21
21
| ^^^^ expected 1 generic argument
22
22
|
23
23
note: associated type defined here, with 1 generic parameter: `T`
24
- --> $DIR/issue-105742.rs:32 :10
24
+ --> $DIR/issue-105742.rs:43 :10
25
25
|
26
26
LL | type Item<'a, T>;
27
27
| ^^^^ -
@@ -31,13 +31,13 @@ LL | <Self as SVec>::Item<T>,
31
31
| +++
32
32
33
33
error[E0107]: missing generics for associated type `SVec::Item`
34
- --> $DIR/issue-105742.rs:17 :37
34
+ --> $DIR/issue-105742.rs:22 :37
35
35
|
36
36
LL | Output = <Index<<Self as SVec>::Item,
37
37
| ^^^^ expected 1 lifetime argument
38
38
|
39
39
note: associated type defined here, with 1 lifetime parameter: `'a`
40
- --> $DIR/issue-105742.rs:32 :10
40
+ --> $DIR/issue-105742.rs:43 :10
41
41
|
42
42
LL | type Item<'a, T>;
43
43
| ^^^^ --
@@ -47,13 +47,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
47
47
| ++++
48
48
49
49
error[E0107]: missing generics for associated type `SVec::Item`
50
- --> $DIR/issue-105742.rs:17 :37
50
+ --> $DIR/issue-105742.rs:22 :37
51
51
|
52
52
LL | Output = <Index<<Self as SVec>::Item,
53
53
| ^^^^ expected 1 generic argument
54
54
|
55
55
note: associated type defined here, with 1 generic parameter: `T`
56
- --> $DIR/issue-105742.rs:32 :10
56
+ --> $DIR/issue-105742.rs:43 :10
57
57
|
58
58
LL | type Item<'a, T>;
59
59
| ^^^^ -
@@ -63,13 +63,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
63
63
| +++
64
64
65
65
error[E0107]: missing generics for associated type `SVec::Item`
66
- --> $DIR/issue-105742.rs:22 :30
66
+ --> $DIR/issue-105742.rs:29 :30
67
67
|
68
68
LL | Output = <Self as SVec>::Item> as SVec>::Item,
69
69
| ^^^^ expected 1 lifetime argument
70
70
|
71
71
note: associated type defined here, with 1 lifetime parameter: `'a`
72
- --> $DIR/issue-105742.rs:32 :10
72
+ --> $DIR/issue-105742.rs:43 :10
73
73
|
74
74
LL | type Item<'a, T>;
75
75
| ^^^^ --
@@ -79,13 +79,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
79
79
| ++++
80
80
81
81
error[E0107]: missing generics for associated type `SVec::Item`
82
- --> $DIR/issue-105742.rs:22 :30
82
+ --> $DIR/issue-105742.rs:29 :30
83
83
|
84
84
LL | Output = <Self as SVec>::Item> as SVec>::Item,
85
85
| ^^^^ expected 1 generic argument
86
86
|
87
87
note: associated type defined here, with 1 generic parameter: `T`
88
- --> $DIR/issue-105742.rs:32 :10
88
+ --> $DIR/issue-105742.rs:43 :10
89
89
|
90
90
LL | type Item<'a, T>;
91
91
| ^^^^ -
@@ -95,13 +95,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
95
95
| +++
96
96
97
97
error[E0107]: missing generics for associated type `SVec::Item`
98
- --> $DIR/issue-105742.rs:22 :46
98
+ --> $DIR/issue-105742.rs:29 :46
99
99
|
100
100
LL | Output = <Self as SVec>::Item> as SVec>::Item,
101
101
| ^^^^ expected 1 lifetime argument
102
102
|
103
103
note: associated type defined here, with 1 lifetime parameter: `'a`
104
- --> $DIR/issue-105742.rs:32 :10
104
+ --> $DIR/issue-105742.rs:43 :10
105
105
|
106
106
LL | type Item<'a, T>;
107
107
| ^^^^ --
@@ -111,13 +111,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
111
111
| ++++
112
112
113
113
error[E0107]: missing generics for associated type `SVec::Item`
114
- --> $DIR/issue-105742.rs:22 :46
114
+ --> $DIR/issue-105742.rs:29 :46
115
115
|
116
116
LL | Output = <Self as SVec>::Item> as SVec>::Item,
117
117
| ^^^^ expected 1 generic argument
118
118
|
119
119
note: associated type defined here, with 1 generic parameter: `T`
120
- --> $DIR/issue-105742.rs:32 :10
120
+ --> $DIR/issue-105742.rs:43 :10
121
121
|
122
122
LL | type Item<'a, T>;
123
123
| ^^^^ -
@@ -133,7 +133,7 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
133
133
| ^^^^ expected 1 lifetime argument
134
134
|
135
135
note: associated type defined here, with 1 lifetime parameter: `'a`
136
- --> $DIR/issue-105742.rs:32 :10
136
+ --> $DIR/issue-105742.rs:43 :10
137
137
|
138
138
LL | type Item<'a, T>;
139
139
| ^^^^ --
@@ -149,7 +149,7 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
149
149
| ^^^^ expected 1 generic argument
150
150
|
151
151
note: associated type defined here, with 1 generic parameter: `T`
152
- --> $DIR/issue-105742.rs:32 :10
152
+ --> $DIR/issue-105742.rs:43 :10
153
153
|
154
154
LL | type Item<'a, T>;
155
155
| ^^^^ -
@@ -159,13 +159,13 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<T> = T, Output = T>) {
159
159
| +++
160
160
161
161
error[E0107]: missing generics for associated type `SVec::Item`
162
- --> $DIR/issue-105742.rs:12 :21
162
+ --> $DIR/issue-105742.rs:15 :21
163
163
|
164
164
LL | <Self as SVec>::Item,
165
165
| ^^^^ expected 1 lifetime argument
166
166
|
167
167
note: associated type defined here, with 1 lifetime parameter: `'a`
168
- --> $DIR/issue-105742.rs:32 :10
168
+ --> $DIR/issue-105742.rs:43 :10
169
169
|
170
170
LL | type Item<'a, T>;
171
171
| ^^^^ --
@@ -175,13 +175,13 @@ LL | <Self as SVec>::Item<'a>,
175
175
| ++++
176
176
177
177
error[E0107]: missing generics for associated type `SVec::Item`
178
- --> $DIR/issue-105742.rs:12 :21
178
+ --> $DIR/issue-105742.rs:15 :21
179
179
|
180
180
LL | <Self as SVec>::Item,
181
181
| ^^^^ expected 1 generic argument
182
182
|
183
183
note: associated type defined here, with 1 generic parameter: `T`
184
- --> $DIR/issue-105742.rs:32 :10
184
+ --> $DIR/issue-105742.rs:43 :10
185
185
|
186
186
LL | type Item<'a, T>;
187
187
| ^^^^ -
@@ -191,13 +191,13 @@ LL | <Self as SVec>::Item<T>,
191
191
| +++
192
192
193
193
error[E0107]: missing generics for associated type `SVec::Item`
194
- --> $DIR/issue-105742.rs:17 :37
194
+ --> $DIR/issue-105742.rs:22 :37
195
195
|
196
196
LL | Output = <Index<<Self as SVec>::Item,
197
197
| ^^^^ expected 1 lifetime argument
198
198
|
199
199
note: associated type defined here, with 1 lifetime parameter: `'a`
200
- --> $DIR/issue-105742.rs:32 :10
200
+ --> $DIR/issue-105742.rs:43 :10
201
201
|
202
202
LL | type Item<'a, T>;
203
203
| ^^^^ --
@@ -207,13 +207,13 @@ LL | Output = <Index<<Self as SVec>::Item<'a>,
207
207
| ++++
208
208
209
209
error[E0107]: missing generics for associated type `SVec::Item`
210
- --> $DIR/issue-105742.rs:17 :37
210
+ --> $DIR/issue-105742.rs:22 :37
211
211
|
212
212
LL | Output = <Index<<Self as SVec>::Item,
213
213
| ^^^^ expected 1 generic argument
214
214
|
215
215
note: associated type defined here, with 1 generic parameter: `T`
216
- --> $DIR/issue-105742.rs:32 :10
216
+ --> $DIR/issue-105742.rs:43 :10
217
217
|
218
218
LL | type Item<'a, T>;
219
219
| ^^^^ -
@@ -223,13 +223,13 @@ LL | Output = <Index<<Self as SVec>::Item<T>,
223
223
| +++
224
224
225
225
error[E0107]: missing generics for associated type `SVec::Item`
226
- --> $DIR/issue-105742.rs:22 :30
226
+ --> $DIR/issue-105742.rs:29 :30
227
227
|
228
228
LL | Output = <Self as SVec>::Item> as SVec>::Item,
229
229
| ^^^^ expected 1 lifetime argument
230
230
|
231
231
note: associated type defined here, with 1 lifetime parameter: `'a`
232
- --> $DIR/issue-105742.rs:32 :10
232
+ --> $DIR/issue-105742.rs:43 :10
233
233
|
234
234
LL | type Item<'a, T>;
235
235
| ^^^^ --
@@ -239,13 +239,13 @@ LL | Output = <Self as SVec>::Item<'a>> as SVec>::Item,
239
239
| ++++
240
240
241
241
error[E0107]: missing generics for associated type `SVec::Item`
242
- --> $DIR/issue-105742.rs:22 :30
242
+ --> $DIR/issue-105742.rs:29 :30
243
243
|
244
244
LL | Output = <Self as SVec>::Item> as SVec>::Item,
245
245
| ^^^^ expected 1 generic argument
246
246
|
247
247
note: associated type defined here, with 1 generic parameter: `T`
248
- --> $DIR/issue-105742.rs:32 :10
248
+ --> $DIR/issue-105742.rs:43 :10
249
249
|
250
250
LL | type Item<'a, T>;
251
251
| ^^^^ -
@@ -255,13 +255,13 @@ LL | Output = <Self as SVec>::Item<T>> as SVec>::Item,
255
255
| +++
256
256
257
257
error[E0107]: missing generics for associated type `SVec::Item`
258
- --> $DIR/issue-105742.rs:22 :46
258
+ --> $DIR/issue-105742.rs:29 :46
259
259
|
260
260
LL | Output = <Self as SVec>::Item> as SVec>::Item,
261
261
| ^^^^ expected 1 lifetime argument
262
262
|
263
263
note: associated type defined here, with 1 lifetime parameter: `'a`
264
- --> $DIR/issue-105742.rs:32 :10
264
+ --> $DIR/issue-105742.rs:43 :10
265
265
|
266
266
LL | type Item<'a, T>;
267
267
| ^^^^ --
@@ -271,13 +271,13 @@ LL | Output = <Self as SVec>::Item> as SVec>::Item<'a>,
271
271
| ++++
272
272
273
273
error[E0107]: missing generics for associated type `SVec::Item`
274
- --> $DIR/issue-105742.rs:22 :46
274
+ --> $DIR/issue-105742.rs:29 :46
275
275
|
276
276
LL | Output = <Self as SVec>::Item> as SVec>::Item,
277
277
| ^^^^ expected 1 generic argument
278
278
|
279
279
note: associated type defined here, with 1 generic parameter: `T`
280
- --> $DIR/issue-105742.rs:32 :10
280
+ --> $DIR/issue-105742.rs:43 :10
281
281
|
282
282
LL | type Item<'a, T>;
283
283
| ^^^^ -
@@ -293,7 +293,7 @@ LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
293
293
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SVec` cannot be made into an object
294
294
|
295
295
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
296
- --> $DIR/issue-105742.rs:11 :17
296
+ --> $DIR/issue-105742.rs:14 :17
297
297
|
298
298
LL | pub trait SVec: Index<
299
299
| ____________----__^
@@ -307,6 +307,7 @@ LL | |/ Output = <Index<<Self as SVec>::Item,
307
307
LL | ||
308
308
LL | ||
309
309
LL | ||
310
+ ... ||
310
311
LL | ||
311
312
LL | || Output = <Self as SVec>::Item> as SVec>::Item,
312
313
| ||_________________________________________________^ ...because it uses `Self` as a type parameter
@@ -316,13 +317,13 @@ LL | | > {
316
317
| |__^ ...because it uses `Self` as a type parameter
317
318
318
319
error[E0107]: missing generics for associated type `SVec::Item`
319
- --> $DIR/issue-105742.rs:34 :38
320
+ --> $DIR/issue-105742.rs:45 :38
320
321
|
321
322
LL | fn len(&self) -> <Self as SVec>::Item;
322
323
| ^^^^ expected 1 lifetime argument
323
324
|
324
325
note: associated type defined here, with 1 lifetime parameter: `'a`
325
- --> $DIR/issue-105742.rs:32 :10
326
+ --> $DIR/issue-105742.rs:43 :10
326
327
|
327
328
LL | type Item<'a, T>;
328
329
| ^^^^ --
@@ -332,13 +333,13 @@ LL | fn len(&self) -> <Self as SVec>::Item<'_>;
332
333
| ++++
333
334
334
335
error[E0107]: missing generics for associated type `SVec::Item`
335
- --> $DIR/issue-105742.rs:34 :38
336
+ --> $DIR/issue-105742.rs:45 :38
336
337
|
337
338
LL | fn len(&self) -> <Self as SVec>::Item;
338
339
| ^^^^ expected 1 generic argument
339
340
|
340
341
note: associated type defined here, with 1 generic parameter: `T`
341
- --> $DIR/issue-105742.rs:32 :10
342
+ --> $DIR/issue-105742.rs:43 :10
342
343
|
343
344
LL | type Item<'a, T>;
344
345
| ^^^^ -
0 commit comments