Account for ?Sized type parameter bounds
This commit is contained in:
parent
d216b731f6
commit
342db717e2
18 changed files with 76 additions and 72 deletions
|
|
@ -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
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue