2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `W` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:23:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-10-08 18:03:35 +00:00
|
|
|
LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
2023-06-14 17:22:03 +00:00
|
|
|
| - this type parameter needs to be `Sized`
|
2019-10-08 18:03:35 +00:00
|
|
|
LL | // parameter
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VA(W),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
|
|
|
LL + enum E<W, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-07-10 22:13:49 +00:00
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VA(&W),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VA(Box<W>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `X` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:25:11
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-10-08 18:03:35 +00:00
|
|
|
LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
2023-06-14 17:22:03 +00:00
|
|
|
| - this type parameter needs to be `Sized`
|
2019-10-08 18:03:35 +00:00
|
|
|
...
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VB{x: X},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
|
|
|
LL + enum E<W: ?Sized, X, Y: ?Sized, Z: ?Sized> {
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-07-10 22:13:49 +00:00
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VB{x: &X},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VB{x: Box<X>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `Y` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:27:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-10-08 18:03:35 +00:00
|
|
|
LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
2023-06-14 17:22:03 +00:00
|
|
|
| - this type parameter needs to be `Sized`
|
2019-10-08 18:03:35 +00:00
|
|
|
...
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VC(isize, Y),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
|
|
|
LL + enum E<W: ?Sized, X: ?Sized, Y, Z: ?Sized> {
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-07-10 22:13:49 +00:00
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VC(isize, &Y),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VC(isize, Box<Y>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `Z` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:29:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-10-08 18:03:35 +00:00
|
|
|
LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
2023-06-14 17:22:03 +00:00
|
|
|
| - this type parameter needs to be `Sized`
|
2019-10-08 18:03:35 +00:00
|
|
|
...
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VD{u: isize, x: Z},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
|
|
|
|
LL + enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z> {
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-07-10 22:13:49 +00:00
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VD{u: isize, x: &Z},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VD{u: isize, x: Box<Z>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:33:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VE([u8]),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VE(&[u8]),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VE(Box<[u8]>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:35:11
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VF{x: str},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `str`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VF{x: &str},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VF{x: Box<str>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[f32]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:37:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VG(isize, [f32]),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[f32]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VG(isize, &[f32]),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VG(isize, Box<[f32]>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[u32]` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:39:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VH{u: isize, x: [u32]},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[u32]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VH{u: isize, x: &[u32]},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VH{u: isize, x: Box<[u32]>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn Foo + 'static)` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:53:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | VM(dyn Foo),
|
|
|
|
| ^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `(dyn Foo + 'static)`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VM(&dyn Foo),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VM(Box<dyn Foo>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn Bar + 'static)` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:55:11
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | VN{x: dyn Bar},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `(dyn Bar + 'static)`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VN{x: &dyn Bar},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VN{x: Box<dyn Bar>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn FooBar + 'static)` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:57:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | VO(isize, dyn FooBar),
|
|
|
|
| ^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `(dyn FooBar + 'static)`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VO(isize, &dyn FooBar),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VO(isize, Box<dyn FooBar>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn BarFoo + 'static)` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:59:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | VP{u: isize, x: dyn BarFoo},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `(dyn BarFoo + 'static)`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VP{u: isize, x: &dyn BarFoo},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VP{u: isize, x: Box<dyn BarFoo>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[i8]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:63:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VQ(<&'static [i8] as Deref>::Target),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[i8]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VQ(&<&'static [i8] as Deref>::Target),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VQ(Box<<&'static [i8] as Deref>::Target>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[char]` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:65:11
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | VR{x: <&'static [char] as Deref>::Target},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[char]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VR{x: &<&'static [char] as Deref>::Target},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VR{x: Box<<&'static [char] as Deref>::Target>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[f64]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:67:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | VS(isize, <&'static [f64] as Deref>::Target),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[f64]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VS(isize, &<&'static [f64] as Deref>::Target),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VS(isize, Box<<&'static [f64] as Deref>::Target>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:69:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | VT{u: isize, x: <&'static [i32] as Deref>::Target},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sized` is not implemented for `[i32]`
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VT{u: isize, x: &<&'static [i32] as Deref>::Target},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VT{u: isize, x: Box<<&'static [i32] as Deref>::Target>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn PathHelper1 + 'static)` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:43:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VI(Path1),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Path1`, the trait `Sized` is not implemented for `(dyn PathHelper1 + 'static)`, which is required by `Path1: Sized`
|
2021-03-30 20:37:30 +00:00
|
|
|
note: required because it appears within the type `Path1`
|
|
|
|
--> $DIR/unsized-enum2.rs:16:8
|
|
|
|
|
|
|
|
|
LL | struct Path1(dyn PathHelper1);
|
|
|
|
| ^^^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VI(&Path1),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VI(Box<Path1>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn PathHelper2 + 'static)` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:45:11
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VJ{x: Path2},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Path2`, the trait `Sized` is not implemented for `(dyn PathHelper2 + 'static)`, which is required by `Path2: Sized`
|
2021-03-30 20:37:30 +00:00
|
|
|
note: required because it appears within the type `Path2`
|
|
|
|
--> $DIR/unsized-enum2.rs:17:8
|
|
|
|
|
|
|
|
|
LL | struct Path2(dyn PathHelper2);
|
|
|
|
| ^^^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VJ{x: &Path2},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VJ{x: Box<Path2>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn PathHelper3 + 'static)` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:47:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VK(isize, Path3),
|
2018-06-19 22:53:51 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Path3`, the trait `Sized` is not implemented for `(dyn PathHelper3 + 'static)`, which is required by `Path3: Sized`
|
2021-03-30 20:37:30 +00:00
|
|
|
note: required because it appears within the type `Path3`
|
|
|
|
--> $DIR/unsized-enum2.rs:18:8
|
|
|
|
|
|
|
|
|
LL | struct Path3(dyn PathHelper3);
|
|
|
|
| ^^^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VK(isize, &Path3),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VK(isize, Box<Path3>),
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `(dyn PathHelper4 + 'static)` cannot be known at compilation time
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:49:21
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VL{u: isize, x: Path4},
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^ doesn't have a size known at compile-time
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Path4`, the trait `Sized` is not implemented for `(dyn PathHelper4 + 'static)`, which is required by `Path4: Sized`
|
2021-03-30 20:37:30 +00:00
|
|
|
note: required because it appears within the type `Path4`
|
|
|
|
--> $DIR/unsized-enum2.rs:19:8
|
|
|
|
|
|
|
|
|
LL | struct Path4(dyn PathHelper4);
|
|
|
|
| ^^^^^
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
2020-07-10 22:13:49 +00:00
|
|
|
= help: change the field's type to have a statically known size
|
|
|
|
help: borrowed types always have a statically known size
|
|
|
|
|
|
|
|
|
LL | VL{u: isize, x: &Path4},
|
2021-06-22 02:07:19 +00:00
|
|
|
| +
|
2020-07-14 19:18:01 +00:00
|
|
|
help: the `Box` type always has a statically known size and allocates its contents in the heap
|
2020-07-10 22:13:49 +00:00
|
|
|
|
|
|
|
|
LL | VL{u: isize, x: Box<Path4>},
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++ +
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|