1 error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
2 --> $DIR/dst-sized-trait-param.rs:7:6
4 LL | trait Foo<T> : Sized { fn take(self, x: &T) { } } // Note: T is sized
5 | - required by this bound in `Foo`
7 LL | impl Foo<[isize]> for usize { }
8 | ^^^^^^^^^^^^ doesn't have a size known at compile-time
10 = help: the trait `std::marker::Sized` is not implemented for `[isize]`
11 help: consider relaxing the implicit `Sized` restriction
13 LL | trait Foo<T: ?Sized> : Sized { fn take(self, x: &T) { } } // Note: T is sized
16 error[E0277]: the size for values of type `[usize]` cannot be known at compilation time
17 --> $DIR/dst-sized-trait-param.rs:10:6
19 LL | trait Foo<T> : Sized { fn take(self, x: &T) { } } // Note: T is sized
20 | ----- required by this bound in `Foo`
22 LL | impl Foo<isize> for [usize] { }
23 | ^^^^^^^^^^ doesn't have a size known at compile-time
25 = help: the trait `std::marker::Sized` is not implemented for `[usize]`
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0277`.