11error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
2- --> $DIR/issue-38821.rs:35 :1
2+ --> $DIR/issue-38821.rs:40 :1
33 |
44LL | pub enum ColumnInsertValue<Col, Expr> where
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
@@ -16,8 +16,8 @@ help: consider extending the `where` clause, but there might be an alternative b
1616LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull
1717 | +++++++++++++++++++++++++++++++++++++
1818
19- error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull ` is not satisfied
20- --> $DIR/issue-38821.rs:38 :22
19+ error[E0277]: the trait bound `<Col as Expression>::SqlType: IntoNullable ` is not satisfied
20+ --> $DIR/issue-38821.rs:43 :22
2121 |
2222LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
2323 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
@@ -82,10 +82,10 @@ LL | impl<T: NotNull> IntoNullable for T {
8282 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
8383
8484error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
85- --> $DIR/issue-38821.rs:38:22
85+ --> $DIR/issue-38821.rs:23:10
8686 |
87- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
88- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
87+ LL | #[derive(Debug, Copy, Clone)]
88+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
8989 |
9090note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
9191 --> $DIR/issue-38821.rs:9:18
@@ -94,6 +94,14 @@ LL | impl<T: NotNull> IntoNullable for T {
9494 | ------- ^^^^^^^^^^^^ ^
9595 | |
9696 | unsatisfied trait bound introduced here
97+ note: required for `ColumnInsertValue<Col, Expr>` to implement `Debug`
98+ --> $DIR/issue-38821.rs:23:10
99+ |
100+ LL | #[derive(Debug, Copy, Clone)]
101+ | ^^^^^
102+ ...
103+ LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
104+ | ------------------------------------------------ unsatisfied trait bound introduced in this `derive` macro
97105help: consider further restricting the associated type
98106 |
99107LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
@@ -118,10 +126,10 @@ LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Co
118126 | +++++++++++++++++++++++++++++++++++++++
119127
120128error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
121- --> $DIR/issue-38821.rs:38:22
129+ --> $DIR/issue-38821.rs:23:17
122130 |
123- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
124- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
131+ LL | #[derive(Debug, Copy, Clone)]
132+ | ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
125133 |
126134note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
127135 --> $DIR/issue-38821.rs:9:18
@@ -130,6 +138,14 @@ LL | impl<T: NotNull> IntoNullable for T {
130138 | ------- ^^^^^^^^^^^^ ^
131139 | |
132140 | unsatisfied trait bound introduced here
141+ note: required for `ColumnInsertValue<Col, Expr>` to implement `Copy`
142+ --> $DIR/issue-38821.rs:23:17
143+ |
144+ LL | #[derive(Debug, Copy, Clone)]
145+ | ^^^^
146+ ...
147+ LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
148+ | ------------------------------------------------ unsatisfied trait bound introduced in this `derive` macro
133149help: consider further restricting the associated type
134150 |
135151LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
@@ -183,10 +199,10 @@ LL | impl<T: NotNull> IntoNullable for T {
183199 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
184200
185201error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
186- --> $DIR/issue-38821.rs:38:22
202+ --> $DIR/issue-38821.rs:23:23
187203 |
188- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
189- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
204+ LL | #[derive(Debug, Copy, Clone)]
205+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
190206 |
191207note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
192208 --> $DIR/issue-38821.rs:9:18
@@ -195,6 +211,14 @@ LL | impl<T: NotNull> IntoNullable for T {
195211 | ------- ^^^^^^^^^^^^ ^
196212 | |
197213 | unsatisfied trait bound introduced here
214+ note: required for `ColumnInsertValue<Col, Expr>` to implement `Clone`
215+ --> $DIR/issue-38821.rs:23:23
216+ |
217+ LL | #[derive(Debug, Copy, Clone)]
218+ | ^^^^^
219+ ...
220+ LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
221+ | ------------------------------------------------ unsatisfied trait bound introduced in this `derive` macro
198222help: consider further restricting the associated type
199223 |
200224LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
@@ -216,10 +240,10 @@ LL | impl<T: NotNull> IntoNullable for T {
216240 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
217241
218242error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
219- --> $DIR/issue-38821.rs:38:22
243+ --> $DIR/issue-38821.rs:23:10
220244 |
221- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
222- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
245+ LL | #[derive(Debug, Copy, Clone)]
246+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
223247 |
224248note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
225249 --> $DIR/issue-38821.rs:9:18
@@ -245,10 +269,10 @@ LL | impl<T: NotNull> IntoNullable for T {
245269 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
246270
247271error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
248- --> $DIR/issue-38821.rs:38:22
272+ --> $DIR/issue-38821.rs:23:23
249273 |
250- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
251- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
274+ LL | #[derive(Debug, Copy, Clone)]
275+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
252276 |
253277note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
254278 --> $DIR/issue-38821.rs:9:18
@@ -257,7 +281,6 @@ LL | impl<T: NotNull> IntoNullable for T {
257281 | ------- ^^^^^^^^^^^^ ^
258282 | |
259283 | unsatisfied trait bound introduced here
260- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
261284
262285error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
263286 --> $DIR/issue-38821.rs:23:10
0 commit comments