@@ -2,7 +2,7 @@ error[E0277]: the size for values of type `W` cannot be known at compilation tim
2
2
--> $DIR/unsized-enum2.rs:23:8
3
3
|
4
4
LL | 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`
6
6
LL | // parameter
7
7
LL | VA(W),
8
8
| ^ 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
15
15
--> $DIR/unsized-enum2.rs:25:8
16
16
|
17
17
LL | 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`
19
19
...
20
20
LL | VB{x: X},
21
21
| ^^^^ 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
28
28
--> $DIR/unsized-enum2.rs:27:15
29
29
|
30
30
LL | 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`
32
32
...
33
33
LL | VC(isize, Y),
34
34
| ^ 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
41
41
--> $DIR/unsized-enum2.rs:29:18
42
42
|
43
43
LL | 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`
45
45
...
46
46
LL | VD{u: isize, x: Z},
47
47
| ^^^^ doesn't have a size known at compile-time
0 commit comments