Suggest associated bound restrictions in impls

This commit is contained in:
Esteban Küber 2019-10-09 15:54:23 -07:00
parent 5cc99eed04
commit bc744bca90
5 changed files with 95 additions and 2 deletions

View file

@ -2,9 +2,10 @@ error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not sat
--> $DIR/issue-38821.rs:23:17
|
LL | #[derive(Debug, Copy, Clone)]
| ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
| ^^^^- help: consider further restricting the associated type: `, <Col as Expression>::SqlType: NotNull`
| |
| the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
|
= help: consider adding a `where <Col as Expression>::SqlType: NotNull` bound
= note: required because of the requirements on the impl of `IntoNullable` for `<Col as Expression>::SqlType`
error: aborting due to previous error