2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-38821.rs:23:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[derive(Debug, Copy, Clone)]
|
2019-10-15 20:29:07 +00:00
|
|
|
| ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2022-08-15 20:31:37 +00:00
|
|
|
note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
|
2021-03-30 20:37:30 +00:00
|
|
|
--> $DIR/issue-38821.rs:9:18
|
|
|
|
|
|
|
|
|
LL | impl<T: NotNull> IntoNullable for T {
|
2023-01-11 03:21:11 +00:00
|
|
|
| ------- ^^^^^^^^^^^^ ^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-11-03 04:19:06 +00:00
|
|
|
help: consider further restricting the associated type
|
|
|
|
|
|
2021-11-20 18:46:36 +00:00
|
|
|
LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
|
|
|
|
| +++++++++++++++++++++++++++++++++++++++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|