Suggest associated bound restrictions in impls
This commit is contained in:
parent
5cc99eed04
commit
bc744bca90
5 changed files with 95 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue