Suggest derivable trait on E0277
This commit is contained in:
parent
60e50fc1cf
commit
0d2a00058b
62 changed files with 310 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ note: required by a bound in `MyTrait::MyType`
|
|||
|
|
||||
LL | type MyType: Default;
|
||||
| ^^^^^^^ required by this bound in `MyTrait::MyType`
|
||||
help: consider annotating `MyStruct` with `#[derive(Default)]`
|
||||
|
|
||||
LL | #[derive(Default)]
|
||||
|
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue