11error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
2- --> $DIR/issue-38821.rs:37 :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,11 +16,11 @@ 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: IntoNullable ` is not satisfied
20- --> $DIR/issue-38821.rs:43:22
19+ error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull ` is not satisfied
20+ --> $DIR/issue-38821.rs:40:1
2121 |
22- LL | Expr: Expression<SqlType=< Col::SqlType as IntoNullable>::Nullable>,
23- | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
22+ LL | pub enum ColumnInsertValue< Col, Expr> where
23+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
2424 |
2525note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
2626 --> $DIR/issue-38821.rs:9:18
@@ -29,6 +29,7 @@ LL | impl<T: NotNull> IntoNullable for T {
2929 | ------- ^^^^^^^^^^^^ ^
3030 | |
3131 | unsatisfied trait bound introduced here
32+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
3233help: consider extending the `where` clause, but there might be an alternative better way to express this requirement
3334 |
3435LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull
@@ -82,13 +83,10 @@ LL | impl<T: NotNull> IntoNullable for T {
8283 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
8384
8485error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
85- --> $DIR/issue-38821.rs:37 :10
86+ --> $DIR/issue-38821.rs:23 :10
8687 |
8788LL | #[derive(Debug, Copy, Clone)]
88- | ----- in this derive macro expansion
89- ...
90- LL | pub enum ColumnInsertValue<Col, Expr> where
91- | ^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
89+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
9290 |
9391note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
9492 --> $DIR/issue-38821.rs:9:18
@@ -97,19 +95,7 @@ LL | impl<T: NotNull> IntoNullable for T {
9795 | ------- ^^^^^^^^^^^^ ^
9896 | |
9997 | unsatisfied trait bound introduced here
100- note: required for `ColumnInsertValue<Col, Expr>` to implement `Debug`
101- --> $DIR/issue-38821.rs:37:10
102- |
103- LL | #[derive(Debug, Copy, Clone)]
104- | ----- in this derive macro expansion
105- ...
106- LL | pub enum ColumnInsertValue<Col, Expr> where
107- | ^^^^^^^^^^^^^^^^^
108- ...
109- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
110- | ------------------------------------------------ unsatisfied trait bound
111- = help: consider manually implementing `Debug` to avoid undesired bounds caused by "imperfect derives"
112- = note: to learn more, visit <https://github.com/rust-lang/rust/issues/26925>
98+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
11399help: consider further restricting the associated type
114100 |
115101LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
@@ -134,13 +120,10 @@ LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Co
134120 | +++++++++++++++++++++++++++++++++++++++
135121
136122error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
137- --> $DIR/issue-38821.rs:37:10
123+ --> $DIR/issue-38821.rs:23:17
138124 |
139125LL | #[derive(Debug, Copy, Clone)]
140- | ---- in this derive macro expansion
141- ...
142- LL | pub enum ColumnInsertValue<Col, Expr> where
143- | ^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
126+ | ^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
144127 |
145128note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
146129 --> $DIR/issue-38821.rs:9:18
@@ -149,17 +132,7 @@ LL | impl<T: NotNull> IntoNullable for T {
149132 | ------- ^^^^^^^^^^^^ ^
150133 | |
151134 | unsatisfied trait bound introduced here
152- note: required for `ColumnInsertValue<Col, Expr>` to implement `Copy`
153- --> $DIR/issue-38821.rs:37:10
154- |
155- LL | #[derive(Debug, Copy, Clone)]
156- | ---- in this derive macro expansion
157- ...
158- LL | pub enum ColumnInsertValue<Col, Expr> where
159- | ^^^^^^^^^^^^^^^^^
160- ...
161- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
162- | ------------------------------------------------ unsatisfied trait bound
135+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
163136help: consider further restricting the associated type
164137 |
165138LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
@@ -213,13 +186,10 @@ LL | impl<T: NotNull> IntoNullable for T {
213186 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
214187
215188error[E0277]: the trait bound `<Col as Expression>::SqlType: NotNull` is not satisfied
216- --> $DIR/issue-38821.rs:37:10
189+ --> $DIR/issue-38821.rs:23:23
217190 |
218191LL | #[derive(Debug, Copy, Clone)]
219- | ----- in this derive macro expansion
220- ...
221- LL | pub enum ColumnInsertValue<Col, Expr> where
222- | ^^^^^^^^^^^^^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
192+ | ^^^^^ the trait `NotNull` is not implemented for `<Col as Expression>::SqlType`
223193 |
224194note: required for `<Col as Expression>::SqlType` to implement `IntoNullable`
225195 --> $DIR/issue-38821.rs:9:18
@@ -228,19 +198,7 @@ LL | impl<T: NotNull> IntoNullable for T {
228198 | ------- ^^^^^^^^^^^^ ^
229199 | |
230200 | unsatisfied trait bound introduced here
231- note: required for `ColumnInsertValue<Col, Expr>` to implement `Clone`
232- --> $DIR/issue-38821.rs:37:10
233- |
234- LL | #[derive(Debug, Copy, Clone)]
235- | ----- in this derive macro expansion
236- ...
237- LL | pub enum ColumnInsertValue<Col, Expr> where
238- | ^^^^^^^^^^^^^^^^^
239- ...
240- LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>,
241- | ------------------------------------------------ unsatisfied trait bound
242- = help: consider manually implementing `Clone` to avoid undesired bounds caused by "imperfect derives"
243- = note: to learn more, visit <https://github.com/rust-lang/rust/issues/26925>
201+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
244202help: consider further restricting the associated type
245203 |
246204LL | Expr: Expression<SqlType=<Col::SqlType as IntoNullable>::Nullable>, <Col as Expression>::SqlType: NotNull,
0 commit comments