error[E0277]: the trait bound `T: Unsize` is not satisfied --> $DIR/validate-unsize-cast.rs:10:42 | LL | impl CastTo for T {} | ^ the trait `Unsize` is not implemented for `T` | = note: all implementations of `Unsize` are provided automatically by the compiler, see for more information note: required by a bound in `CastTo` --> $DIR/validate-unsize-cast.rs:7:30 | LL | pub trait CastTo: Unsize {} | ^^^^^^^^^ required by this bound in `CastTo` help: consider further restricting this bound | LL | impl, U: ?Sized> CastTo for T {} | ++++++++++++++++++++++++ error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`.