error[E0277]: the size for values of type `X` cannot be known at compilation time --> $DIR/unsized-inherent-impl-self-type.rs:7:17 | LL | struct S5(Y); | - required by this bound in `S5` LL | LL | impl S5 { | - ^^^^^ doesn't have a size known at compile-time | | | this type parameter needs to be `Sized` | help: you could relax the implicit `Sized` bound on `Y` if it were used through indirection like `&Y` or `Box` --> $DIR/unsized-inherent-impl-self-type.rs:5:11 | LL | struct S5(Y); | ^ - ...if indirection were used here: `Box` | | | this could be changed to `Y: ?Sized`... error: aborting due to previous error For more information about this error, try `rustc --explain E0277`.