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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `W`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= help: consider adding a `where W: std::marker::Sized` bound
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `X` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:25:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VB{x: X},
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `X`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= help: consider adding a `where X: std::marker::Sized` bound
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `Y`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= help: consider adding a `where Y: std::marker::Sized` bound
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `Z` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:29:18
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VD{u: isize, x: Z},
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `Z`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= help: consider adding a `where Z: std::marker::Sized` bound
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[u8]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:35:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VF{x: str},
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `str`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[f32]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[u32]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:39:18
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VH{u: isize, x: [u32]},
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[u32]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VM(Foo),
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `(dyn Foo + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:55:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VN{x: Bar},
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `(dyn Bar + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VO(isize, FooBar),
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `(dyn FooBar + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:59:18
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VP{u: isize, x: BarFoo},
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `(dyn BarFoo + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[i8]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[char]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:65:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | VR{x: <&'static [char] 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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[char]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[f64]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
2018-07-10 21:10:13 +00:00
|
|
|
error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:69:18
|
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},
|
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
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[i32]`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: within `Path1`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper1 + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: required because it appears within the type `Path1`
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:45:8
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VJ{x: Path2},
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: within `Path2`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper2 + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: required because it appears within the type `Path2`
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: within `Path3`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper3 + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: required because it appears within the type `Path3`
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
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
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/unsized-enum2.rs:49:18
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-06-09 23:53:36 +00:00
|
|
|
LL | VL{u: isize, x: Path4},
|
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
|
|
|
|
|
2018-05-27 03:51:50 +00:00
|
|
|
= help: within `Path4`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper4 + 'static)`
|
2019-01-01 17:53:07 +00:00
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
2017-12-10 19:47:55 +00:00
|
|
|
= note: required because it appears within the type `Path4`
|
|
|
|
= note: no field of an enum variant may have a dynamically sized type
|
|
|
|
|
|
|
|
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`.
|