|
1 | | -error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied |
2 | | - --> $DIR/issue-38821.rs:23:17 |
3 | | - | |
4 | | -LL | #[derive(Debug, Copy, Clone)] |
5 | | - | ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`, which is required by `<Col as Expression>::SqlType: IntoNullable` |
6 | | - | |
7 | | -note: required for `<Col as Expression>::SqlType` to implement `IntoNullable` |
8 | | - --> $DIR/issue-38821.rs:9:18 |
9 | | - | |
10 | | -LL | impl<T: NotNull> IntoNullable for T { |
11 | | - | ------- ^^^^^^^^^^^^ ^ |
12 | | - | | |
13 | | - | unsatisfied trait bound introduced here |
14 | | - = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
15 | | -help: consider further restricting the associated type |
16 | | - | |
17 | | -LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull, |
18 | | - | +++++++++++++++++++++++++++++++++++++++ |
19 | | - |
20 | 1 | error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied |
21 | 2 | --> $DIR/issue-38821.rs:40:1 |
22 | 3 | | |
@@ -129,6 +110,25 @@ LL | impl<T: NotNull> IntoNullable for T { |
129 | 110 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
130 | 111 | = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) |
131 | 112 |
|
| 113 | +error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied |
| 114 | + --> $DIR/issue-38821.rs:23:17 |
| 115 | + | |
| 116 | +LL | #[derive(Debug, Copy, Clone)] |
| 117 | + | ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`, which is required by `<Col as Expression>::SqlType: IntoNullable` |
| 118 | + | |
| 119 | +note: required for `<Col as Expression>::SqlType` to implement `IntoNullable` |
| 120 | + --> $DIR/issue-38821.rs:9:18 |
| 121 | + | |
| 122 | +LL | impl<T: NotNull> IntoNullable for T { |
| 123 | + | ------- ^^^^^^^^^^^^ ^ |
| 124 | + | | |
| 125 | + | unsatisfied trait bound introduced here |
| 126 | + = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 127 | +help: consider further restricting the associated type |
| 128 | + | |
| 129 | +LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull, |
| 130 | + | +++++++++++++++++++++++++++++++++++++++ |
| 131 | + |
132 | 132 | error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied |
133 | 133 | --> $DIR/issue-38821.rs:23:17 |
134 | 134 | | |
|
0 commit comments