1
1
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2
- --> $DIR/impls.rs:241 :42
2
+ --> $DIR/impls.rs:242 :42
3
3
|
4
4
LL | struct StructAllFieldsMetaSized { x: [u8], y: [u8] }
5
5
| ^^^^ doesn't have a size known at compile-time
@@ -17,7 +17,7 @@ LL | struct StructAllFieldsMetaSized { x: Box<[u8]>, y: [u8] }
17
17
| ++++ +
18
18
19
19
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
20
- --> $DIR/impls.rs:249 :40
20
+ --> $DIR/impls.rs:250 :40
21
21
|
22
22
LL | struct StructAllFieldsUnsized { x: Foo, y: Foo }
23
23
| ^^^ doesn't have a size known at compile-time
@@ -35,7 +35,7 @@ LL | struct StructAllFieldsUnsized { x: Box<Foo>, y: Foo }
35
35
| ++++ +
36
36
37
37
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
38
- --> $DIR/impls.rs:285 :44
38
+ --> $DIR/impls.rs:286 :44
39
39
|
40
40
LL | enum EnumAllFieldsMetaSized { Qux { x: [u8], y: [u8] } }
41
41
| ^^^^ doesn't have a size known at compile-time
@@ -53,7 +53,7 @@ LL | enum EnumAllFieldsMetaSized { Qux { x: Box<[u8]>, y: [u8] } }
53
53
| ++++ +
54
54
55
55
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
56
- --> $DIR/impls.rs:292 :42
56
+ --> $DIR/impls.rs:293 :42
57
57
|
58
58
LL | enum EnumAllFieldsUnsized { Qux { x: Foo, y: Foo } }
59
59
| ^^^ doesn't have a size known at compile-time
@@ -71,7 +71,7 @@ LL | enum EnumAllFieldsUnsized { Qux { x: Box<Foo>, y: Foo } }
71
71
| ++++ +
72
72
73
73
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
74
- --> $DIR/impls.rs:299 :52
74
+ --> $DIR/impls.rs:300 :52
75
75
|
76
76
LL | enum EnumLastFieldMetaSized { Qux { x: u32, y: [u8] } }
77
77
| ^^^^ doesn't have a size known at compile-time
@@ -89,7 +89,7 @@ LL | enum EnumLastFieldMetaSized { Qux { x: u32, y: Box<[u8]> } }
89
89
| ++++ +
90
90
91
91
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
92
- --> $DIR/impls.rs:306 :50
92
+ --> $DIR/impls.rs:307 :50
93
93
|
94
94
LL | enum EnumLastFieldUnsized { Qux { x: u32, y: Foo } }
95
95
| ^^^ doesn't have a size known at compile-time
@@ -216,8 +216,22 @@ LL | needs_metasized::<(Foo, Foo)>();
216
216
= help: the trait `Sized` is not implemented for `main::Foo`
217
217
= note: only the last element of a tuple may have a dynamically sized type
218
218
219
+ error[E0277]: the size for values of type `main::Foo` cannot be known
220
+ --> $DIR/impls.rs:210:23
221
+ |
222
+ LL | needs_metasized::<(Foo, Foo)>();
223
+ | ^^^^^^^^^^ doesn't have a known size
224
+ |
225
+ = help: within `(main::Foo, main::Foo)`, the trait `MetaSized` is not implemented for `main::Foo`
226
+ = note: required because it appears within the type `(main::Foo, main::Foo)`
227
+ note: required by a bound in `needs_metasized`
228
+ --> $DIR/impls.rs:18:23
229
+ |
230
+ LL | fn needs_metasized<T: MetaSized>() { }
231
+ | ^^^^^^^^^ required by this bound in `needs_metasized`
232
+
219
233
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
220
- --> $DIR/impls.rs:212 :26
234
+ --> $DIR/impls.rs:213 :26
221
235
|
222
236
LL | needs_pointeesized::<(Foo, Foo)>();
223
237
| ^^^^^^^^^^ doesn't have a size known at compile-time
@@ -226,7 +240,7 @@ LL | needs_pointeesized::<(Foo, Foo)>();
226
240
= note: only the last element of a tuple may have a dynamically sized type
227
241
228
242
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
229
- --> $DIR/impls.rs:216 :19
243
+ --> $DIR/impls.rs:217 :19
230
244
|
231
245
LL | needs_sized::<(u32, [u8])>();
232
246
| ^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -240,7 +254,7 @@ LL | fn needs_sized<T: Sized>() { }
240
254
| ^^^^^ required by this bound in `needs_sized`
241
255
242
256
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
243
- --> $DIR/impls.rs:222 :19
257
+ --> $DIR/impls.rs:223 :19
244
258
|
245
259
LL | needs_sized::<(u32, Foo)>();
246
260
| ^^^^^^^^^^ doesn't have a size known at compile-time
@@ -254,7 +268,7 @@ LL | fn needs_sized<T: Sized>() { }
254
268
| ^^^^^ required by this bound in `needs_sized`
255
269
256
270
error[E0277]: the size for values of type `main::Foo` cannot be known
257
- --> $DIR/impls.rs:224 :23
271
+ --> $DIR/impls.rs:225 :23
258
272
|
259
273
LL | needs_metasized::<(u32, Foo)>();
260
274
| ^^^^^^^^^^ doesn't have a known size
@@ -268,14 +282,14 @@ LL | fn needs_metasized<T: MetaSized>() { }
268
282
| ^^^^^^^^^ required by this bound in `needs_metasized`
269
283
270
284
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
271
- --> $DIR/impls.rs:243 :19
285
+ --> $DIR/impls.rs:244 :19
272
286
|
273
287
LL | needs_sized::<StructAllFieldsMetaSized>();
274
288
| ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
275
289
|
276
290
= help: within `StructAllFieldsMetaSized`, the trait `Sized` is not implemented for `[u8]`
277
291
note: required because it appears within the type `StructAllFieldsMetaSized`
278
- --> $DIR/impls.rs:241 :12
292
+ --> $DIR/impls.rs:242 :12
279
293
|
280
294
LL | struct StructAllFieldsMetaSized { x: [u8], y: [u8] }
281
295
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -286,14 +300,14 @@ LL | fn needs_sized<T: Sized>() { }
286
300
| ^^^^^ required by this bound in `needs_sized`
287
301
288
302
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
289
- --> $DIR/impls.rs:251 :19
303
+ --> $DIR/impls.rs:252 :19
290
304
|
291
305
LL | needs_sized::<StructAllFieldsUnsized>();
292
306
| ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
293
307
|
294
308
= help: within `StructAllFieldsUnsized`, the trait `Sized` is not implemented for `main::Foo`
295
309
note: required because it appears within the type `StructAllFieldsUnsized`
296
- --> $DIR/impls.rs:249 :12
310
+ --> $DIR/impls.rs:250 :12
297
311
|
298
312
LL | struct StructAllFieldsUnsized { x: Foo, y: Foo }
299
313
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -304,14 +318,14 @@ LL | fn needs_sized<T: Sized>() { }
304
318
| ^^^^^ required by this bound in `needs_sized`
305
319
306
320
error[E0277]: the size for values of type `main::Foo` cannot be known
307
- --> $DIR/impls.rs:253 :23
321
+ --> $DIR/impls.rs:254 :23
308
322
|
309
323
LL | needs_metasized::<StructAllFieldsUnsized>();
310
324
| ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a known size
311
325
|
312
326
= help: within `StructAllFieldsUnsized`, the trait `MetaSized` is not implemented for `main::Foo`
313
327
note: required because it appears within the type `StructAllFieldsUnsized`
314
- --> $DIR/impls.rs:249 :12
328
+ --> $DIR/impls.rs:250 :12
315
329
|
316
330
LL | struct StructAllFieldsUnsized { x: Foo, y: Foo }
317
331
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -322,14 +336,14 @@ LL | fn needs_metasized<T: MetaSized>() { }
322
336
| ^^^^^^^^^ required by this bound in `needs_metasized`
323
337
324
338
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
325
- --> $DIR/impls.rs:259 :19
339
+ --> $DIR/impls.rs:260 :19
326
340
|
327
341
LL | needs_sized::<StructLastFieldMetaSized>();
328
342
| ^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
329
343
|
330
344
= help: within `StructLastFieldMetaSized`, the trait `Sized` is not implemented for `[u8]`
331
345
note: required because it appears within the type `StructLastFieldMetaSized`
332
- --> $DIR/impls.rs:258 :12
346
+ --> $DIR/impls.rs:259 :12
333
347
|
334
348
LL | struct StructLastFieldMetaSized { x: u32, y: [u8] }
335
349
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -340,14 +354,14 @@ LL | fn needs_sized<T: Sized>() { }
340
354
| ^^^^^ required by this bound in `needs_sized`
341
355
342
356
error[E0277]: the size for values of type `main::Foo` cannot be known at compilation time
343
- --> $DIR/impls.rs:266 :19
357
+ --> $DIR/impls.rs:267 :19
344
358
|
345
359
LL | needs_sized::<StructLastFieldUnsized>();
346
360
| ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
347
361
|
348
362
= help: within `StructLastFieldUnsized`, the trait `Sized` is not implemented for `main::Foo`
349
363
note: required because it appears within the type `StructLastFieldUnsized`
350
- --> $DIR/impls.rs:265 :12
364
+ --> $DIR/impls.rs:266 :12
351
365
|
352
366
LL | struct StructLastFieldUnsized { x: u32, y: Foo }
353
367
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -358,14 +372,14 @@ LL | fn needs_sized<T: Sized>() { }
358
372
| ^^^^^ required by this bound in `needs_sized`
359
373
360
374
error[E0277]: the size for values of type `main::Foo` cannot be known
361
- --> $DIR/impls.rs:268 :23
375
+ --> $DIR/impls.rs:269 :23
362
376
|
363
377
LL | needs_metasized::<StructLastFieldUnsized>();
364
378
| ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a known size
365
379
|
366
380
= help: within `StructLastFieldUnsized`, the trait `MetaSized` is not implemented for `main::Foo`
367
381
note: required because it appears within the type `StructLastFieldUnsized`
368
- --> $DIR/impls.rs:265 :12
382
+ --> $DIR/impls.rs:266 :12
369
383
|
370
384
LL | struct StructLastFieldUnsized { x: u32, y: Foo }
371
385
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -375,6 +389,6 @@ note: required by a bound in `needs_metasized`
375
389
LL | fn needs_metasized<T: MetaSized>() { }
376
390
| ^^^^^^^^^ required by this bound in `needs_metasized`
377
391
378
- error: aborting due to 26 previous errors
392
+ error: aborting due to 27 previous errors
379
393
380
394
For more information about this error, try `rustc --explain E0277`.
0 commit comments