@@ -2,7 +2,7 @@ error[E0277]: the size for values of type `W` cannot be known at compilation tim
22 --> $DIR/unsized-enum2.rs:23:8
33 |
44LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
5- | -- help: consider further restricting this bound: `W: std::marker::Sized + `
5+ | - this type parameter needs to be ` std::marker::Sized`
66LL | // parameter
77LL | VA(W),
88 | ^ doesn't have a size known at compile-time
@@ -15,7 +15,7 @@ error[E0277]: the size for values of type `X` cannot be known at compilation tim
1515 --> $DIR/unsized-enum2.rs:25:8
1616 |
1717LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
18- | -- help: consider further restricting this bound: `X: std::marker::Sized + `
18+ | - this type parameter needs to be ` std::marker::Sized`
1919...
2020LL | VB{x: X},
2121 | ^^^^ doesn't have a size known at compile-time
@@ -28,7 +28,7 @@ error[E0277]: the size for values of type `Y` cannot be known at compilation tim
2828 --> $DIR/unsized-enum2.rs:27:15
2929 |
3030LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
31- | -- help: consider further restricting this bound: `Y: std::marker::Sized + `
31+ | - this type parameter needs to be ` std::marker::Sized`
3232...
3333LL | VC(isize, Y),
3434 | ^ doesn't have a size known at compile-time
@@ -41,7 +41,7 @@ error[E0277]: the size for values of type `Z` cannot be known at compilation tim
4141 --> $DIR/unsized-enum2.rs:29:18
4242 |
4343LL | enum E<W: ?Sized, X: ?Sized, Y: ?Sized, Z: ?Sized> {
44- | -- help: consider further restricting this bound: `Z: std::marker::Sized + `
44+ | - this type parameter needs to be ` std::marker::Sized`
4545...
4646LL | VD{u: isize, x: Z},
4747 | ^^^^ doesn't have a size known at compile-time
0 commit comments