]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied |
0731742a | 2 | --> $DIR/issue-38821.rs:23:17 |
b7449926 XL |
3 | | |
4 | LL | #[derive(Debug, Copy, Clone)] | |
5 | | ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType` | |
6 | | | |
cdc7bbd5 XL |
7 | note: required because of the requirements on the impl of `IntoNullable` for `<Col as Expression>::SqlType` |
8 | --> $DIR/issue-38821.rs:9:18 | |
9 | | | |
10 | LL | impl<T: NotNull> IntoNullable for T { | |
11 | | ^^^^^^^^^^^^ ^ | |
17df50a5 | 12 | = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
a2a8927a XL |
13 | help: consider further restricting the associated type |
14 | | | |
15 | LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull, | |
16 | | +++++++++++++++++++++++++++++++++++++++ | |
b7449926 XL |
17 | |
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0277`. |