Account for ?Sized type parameter bounds

This commit is contained in:
Esteban Küber 2020-02-02 02:03:54 -08:00
parent d216b731f6
commit 342db717e2
18 changed files with 76 additions and 72 deletions

View file

@ -2,7 +2,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
--> $DIR/issue-27060-2.rs:3:5
|
LL | pub struct Bad<T: ?Sized> {
| -- help: consider further restricting this bound: `T: std::marker::Sized +`
| - this type parameter needs to be `std::marker::Sized`
LL | data: T,
| ^^^^^^^ doesn't have a size known at compile-time
|