]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unsized/unsized-inherent-impl-self-type.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / unsized / unsized-inherent-impl-self-type.stderr
1 error[E0277]: the size for values of type `X` cannot be known at compilation time
2 --> $DIR/unsized-inherent-impl-self-type.rs:7:17
3 |
4 LL | struct S5<Y>(Y);
5 | ---------------- required by `S5`
6 LL |
7 LL | impl<X: ?Sized> S5<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: the trait `std::marker::Sized` is not implemented for `X`
13 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.