]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized7.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / unsized7.stderr
1 error[E0277]: the size for values of type `X` cannot be known at compilation time
2   --> $DIR/unsized7.rs:12:21
3    |
4 LL | trait T1<Z: T> {
5    |          - required by this bound in `T1`
6 ...
7 LL | impl<X: ?Sized + T> T1<X> for S3<X> {
8    |      -              ^^^^^ doesn't have a size known at compile-time
9    |      |
10    |      this type parameter needs to be `std::marker::Sized`
11    |
12 help: consider relaxing the implicit `Sized` restriction
13    |
14 LL | trait T1<Z: T + ?Sized> {
15    |               ^^^^^^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.