fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `[isize]` cannot be known at compilation time 2 --> $DIR/dst-sized-trait-param.rs:7:6 3 | 4LL | impl Foo<[isize]> for usize { } 5 | ^^^^^^^^^^^^ doesn't have a size known at compile-time 6 | 7 = help: the trait `Sized` is not implemented for `[isize]` 8note: required by a bound in `Foo` 9 --> $DIR/dst-sized-trait-param.rs:5:11 10 | 11LL | trait Foo<T> : Sized { fn take(self, x: &T) { } } // Note: T is sized 12 | ^ required by this bound in `Foo` 13help: consider relaxing the implicit `Sized` restriction 14 | 15LL | trait Foo<T: ?Sized> : Sized { fn take(self, x: &T) { } } // Note: T is sized 16 | ++++++++ 17 18error[E0277]: the size for values of type `[usize]` cannot be known at compilation time 19 --> $DIR/dst-sized-trait-param.rs:10:21 20 | 21LL | impl Foo<isize> for [usize] { } 22 | ^^^^^^^ doesn't have a size known at compile-time 23 | 24 = help: the trait `Sized` is not implemented for `[usize]` 25note: required by a bound in `Foo` 26 --> $DIR/dst-sized-trait-param.rs:5:16 27 | 28LL | trait Foo<T> : Sized { fn take(self, x: &T) { } } // Note: T is sized 29 | ^^^^^ required by this bound in `Foo` 30 31error: aborting due to 2 previous errors 32 33For more information about this error, try `rustc --explain E0277`.