You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: diesel_compile_tests/tests/fail/array_expressions_must_be_same_type.stderr
+20-58Lines changed: 20 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ error[E0277]: the trait bound `{integer}: SelectableExpression<NoFromClause>` is
107
107
|
108
108
= help: the following implementations were found:
109
109
<&'a T as SelectableExpression<QS>>
110
-
<(A, B) as SelectableExpression<QS>>
111
-
<(A, B, C) as SelectableExpression<QS>>
112
-
<(A, B, C, D) as SelectableExpression<QS>>
110
+
<(T0, T1) as SelectableExpression<QS>>
111
+
<(T0, T1, T2) as SelectableExpression<QS>>
112
+
<(T0, T1, T2, T3) as SelectableExpression<QS>>
113
113
and 137 others
114
114
= note: required because of the requirements on the impl of `SelectableExpression<NoFromClause>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
115
115
= note: 1 redundant requirements hidden
@@ -131,9 +131,9 @@ error[E0277]: the trait bound `{integer}: ValidGrouping<()>` is not satisfied
131
131
|
132
132
= help: the following implementations were found:
133
133
<&'a T as ValidGrouping<GB>>
134
-
<(A, B) as ValidGrouping<__GroupByClause>>
135
-
<(A, B, C) as ValidGrouping<__GroupByClause>>
136
-
<(A, B, C, D) as ValidGrouping<__GroupByClause>>
134
+
<(T0, T1) as ValidGrouping<__GroupByClause>>
135
+
<(T0, T1, T2) as ValidGrouping<__GroupByClause>>
136
+
<(T0, T1, T2, T3) as ValidGrouping<__GroupByClause>>
137
137
and 125 others
138
138
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
139
139
= note: 1 redundant requirements hidden
@@ -149,9 +149,9 @@ error[E0277]: the trait bound `{integer}: SelectableExpression<NoFromClause>` is
149
149
|
150
150
= help: the following implementations were found:
151
151
<&'a T as SelectableExpression<QS>>
152
-
<(A, B) as SelectableExpression<QS>>
153
-
<(A, B, C) as SelectableExpression<QS>>
154
-
<(A, B, C, D) as SelectableExpression<QS>>
152
+
<(T0, T1) as SelectableExpression<QS>>
153
+
<(T0, T1, T2) as SelectableExpression<QS>>
154
+
<(T0, T1, T2, T3) as SelectableExpression<QS>>
155
155
and 137 others
156
156
= note: required because of the requirements on the impl of `SelectableExpression<NoFromClause>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
157
157
= note: 1 redundant requirements hidden
@@ -168,9 +168,9 @@ error[E0277]: the trait bound `{integer}: ValidGrouping<()>` is not satisfied
168
168
|
169
169
= help: the following implementations were found:
170
170
<&'a T as ValidGrouping<GB>>
171
-
<(A, B) as ValidGrouping<__GroupByClause>>
172
-
<(A, B, C) as ValidGrouping<__GroupByClause>>
173
-
<(A, B, C, D) as ValidGrouping<__GroupByClause>>
171
+
<(T0, T1) as ValidGrouping<__GroupByClause>>
172
+
<(T0, T1, T2) as ValidGrouping<__GroupByClause>>
173
+
<(T0, T1, T2, T3) as ValidGrouping<__GroupByClause>>
174
174
and 125 others
175
175
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
176
176
= note: 1 redundant requirements hidden
@@ -187,8 +187,8 @@ error[E0277]: the trait bound `{integer}: QueryFragment<Pg>` is not satisfied
187
187
= help: the following implementations were found:
188
188
<&'a T as QueryFragment<DB>>
189
189
<() as QueryFragment<DB>>
190
-
<(A, B) as QueryFragment<__DB>>
191
-
<(A, B, C) as QueryFragment<__DB>>
190
+
<(T0, T1) as QueryFragment<__DB>>
191
+
<(T0, T1, T2) as QueryFragment<__DB>>
192
192
and 247 others
193
193
= note: required because of the requirements on the impl of `QueryFragment<Pg>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
194
194
= note: 3 redundant requirements hidden
@@ -204,33 +204,13 @@ error[E0277]: the trait bound `{integer}: QueryId` is not satisfied
204
204
= help: the following implementations were found:
205
205
<&'a T as QueryId>
206
206
<() as QueryId>
207
-
<(A, B) as QueryId>
208
-
<(A, B, C) as QueryId>
207
+
<(T0, T1) as QueryId>
208
+
<(T0, T1, T2) as QueryId>
209
209
and 212 others
210
210
= note: required because of the requirements on the impl of `QueryId` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
211
211
= note: 3 redundant requirements hidden
212
212
= note: required because of the requirements on the impl of `QueryId` for `SelectStatement<NoFromClause, diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>>`
213
-
= note: required because of the requirements on the impl of `LoadQuery<_, Vec<f64>>` for `SelectStatement<NoFromClause, diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>>`
214
-
215
-
error[E0277]: the trait bound `{integer}: QueryFragment<Pg>` is not satisfied
| ^^^^^^^^^^ the trait `QueryFragment<Pg>` is not implemented for `{integer}`
220
-
|
221
-
= help: the following implementations were found:
222
-
<&'a T as QueryFragment<DB>>
223
-
<() as QueryFragment<DB>>
224
-
<(A, B) as QueryFragment<__DB>>
225
-
<(A, B, C) as QueryFragment<__DB>>
226
-
and 242 others
227
-
= note: required because of the requirements on the impl of `QueryFragment<Pg>` for `({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>)`
228
-
= note: 2 redundant requirements hidden
229
-
= note: required because of the requirements on the impl of `QueryFragment<Pg>` for `diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>`
230
-
= note: required because of the requirements on the impl of `SelectClauseQueryFragment<NoFromClause, Pg>` for `diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>`
231
-
= note: 1 redundant requirements hidden
232
-
= note: required because of the requirements on the impl of `QueryFragment<Pg>` for `SelectStatement<NoFromClause, diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>>`
233
-
= note: required because of the requirements on the impl of `LoadQuery<_, Vec<f64>>` for `SelectStatement<NoFromClause, diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>>`
213
+
= note: required because of the requirements on the impl of `LoadQuery<'_, _, Vec<f64>>` for `SelectStatement<NoFromClause, diesel::query_builder::select_clause::SelectClause<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>>`
234
214
235
215
error[E0277]: the trait bound `{integer}: diesel::Expression` is not satisfied
@@ -245,27 +225,9 @@ error[E0277]: the trait bound `{integer}: diesel::Expression` is not satisfied
245
225
|
246
226
= help: the following implementations were found:
247
227
<&'a T as diesel::Expression>
248
-
<(A, B) as diesel::Expression>
249
-
<(A, B, C) as diesel::Expression>
250
-
<(A, B, C, D) as diesel::Expression>
228
+
<(T0, T1) as diesel::Expression>
229
+
<(T0, T1, T2) as diesel::Expression>
230
+
<(T0, T1, T2, T3) as diesel::Expression>
251
231
and 106 others
252
232
= note: required because of the requirements on the impl of `AsExpression<diesel::sql_types::Double>` for `{integer}`
253
233
= note: required because of the requirements on the impl of `AsExpressionList<diesel::sql_types::Double>` for `({integer}, f64)`
254
-
255
-
error[E0277]: the trait bound `SelectStatement<NoFromClause>: SelectDsl<diesel::pg::expression::array::ArrayLiteral<(diesel::expression::bound::Bound<diesel::sql_types::Integer, i32>, f64), diesel::sql_types::Integer>>` is not satisfied
| ^^^^^^ the trait `SelectDsl<diesel::pg::expression::array::ArrayLiteral<(diesel::expression::bound::Bound<diesel::sql_types::Integer, i32>, f64), diesel::sql_types::Integer>>` is not implemented for `SelectStatement<NoFromClause>`
260
-
|
261
-
= help: the following implementations were found:
262
-
<SelectStatement<F, S, D, W, O, LOf, G, H, LC> as SelectDsl<Selection>>
263
-
264
-
error[E0277]: the trait bound `SelectStatement<NoFromClause>: SelectDsl<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>` is not satisfied
| ^^^^^^ the trait `SelectDsl<diesel::pg::expression::array::ArrayLiteral<({integer}, diesel::expression::bound::Bound<diesel::sql_types::Double, f64>), diesel::sql_types::Double>>` is not implemented for `SelectStatement<NoFromClause>`
269
-
|
270
-
= help: the following implementations were found:
271
-
<SelectStatement<F, S, D, W, O, LOf, G, H, LC> as SelectDsl<Selection>>
| ^^^^^ the trait `AppearsInFromClause<posts::table>` is not implemented for `users::table`
@@ -9,5 +9,5 @@ error[E0277]: the trait bound `users::table: AppearsInFromClause<posts::table>`
9
9
= note: required because of the requirements on the impl of `AppearsInFromClause<posts::table>` for `FromClause<users::table>`
10
10
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `posts::columns::title`
11
11
= note: 1 redundant requirements hidden
12
-
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `Desc<posts::columns::title>`
13
-
= note: required because of the requirements on the impl of `OrderDsl<Desc<posts::columns::title>>` for `BoxedSelectStatement<'_, (diesel::sql_types::Integer, diesel::sql_types::Text), FromClause<users::table>, Pg>`
12
+
= note: required because of the requirements on the impl of `AppearsOnTable<FromClause<users::table>>` for `diesel::expression::operators::Desc<posts::columns::title>`
13
+
= note: required because of the requirements on the impl of `OrderDsl<diesel::expression::operators::Desc<posts::columns::title>>` for `BoxedSelectStatement<'_, (diesel::sql_types::Integer, diesel::sql_types::Text), FromClause<users::table>, Pg>`
| ^^^^^^ the trait `MixedAggregates<diesel::expression::is_aggregate::No>` is not implemented for `diesel::expression::is_aggregate::Yes`
6
6
|
7
7
= help: the following implementations were found:
8
8
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Never>>
9
9
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Yes>>
10
-
= note: required because of the requirements on the impl of `FilterDsl<Grouped<Gt<count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>>` for `SelectStatement<FromClause<users::table>>`
10
+
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<diesel::expression::operators::Gt<diesel::expression::count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>`
11
+
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Gt<diesel::expression::count::count::count<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<BigInt, i64>>>>` for `SelectStatement<FromClause<users::table>>`
16 | let _ = users::table.filter(sum(users::id).eq(1));
13
13
| ^^^^^^ the trait `MixedAggregates<diesel::expression::is_aggregate::No>` is not implemented for `diesel::expression::is_aggregate::Yes`
14
14
|
15
15
= help: the following implementations were found:
16
16
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Never>>
17
17
<diesel::expression::is_aggregate::Yes as MixedAggregates<diesel::expression::is_aggregate::Yes>>
18
+
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<diesel::expression::operators::Eq<aggregate_folding::sum::sum<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<diesel::sql_types::Nullable<BigInt>, i64>>>`
18
19
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Eq<aggregate_folding::sum::sum<diesel::sql_types::Integer, columns::id>, diesel::expression::bound::Bound<diesel::sql_types::Nullable<BigInt>, i64>>>>` for `SelectStatement<FromClause<users::table>>`
Copy file name to clipboardExpand all lines: diesel_compile_tests/tests/fail/find_requires_correct_type.stderr
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,19 @@ error[E0277]: the trait bound `str: diesel::Expression` is not satisfied
10
10
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Eq<int_primary_key::columns::id, &str>>>` for `SelectStatement<FromClause<int_primary_key::table>>`
11
11
12
12
error[E0277]: the trait bound `str: ValidGrouping<()>` is not satisfied
| ^^^ the trait `ValidGrouping<()>` is not implemented for `str`
17
17
|
18
18
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `&str`
19
19
= note: 1 redundant requirements hidden
20
20
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `diesel::expression::operators::Eq<int_primary_key::columns::id, &str>`
21
+
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<diesel::expression::operators::Eq<int_primary_key::columns::id, &str>>`
21
22
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Eq<int_primary_key::columns::id, &str>>>` for `SelectStatement<FromClause<int_primary_key::table>>`
22
23
23
24
error[E0277]: the trait bound `{integer}: diesel::Expression` is not satisfied
| ^ the trait `diesel::Expression` is not implemented for `{integer}`
@@ -36,7 +37,7 @@ error[E0277]: the trait bound `{integer}: diesel::Expression` is not satisfied
36
37
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Eq<string_primary_key::columns::id, {integer}>>>` for `SelectStatement<FromClause<string_primary_key::table>>`
37
38
38
39
error[E0277]: the trait bound `{integer}: ValidGrouping<()>` is not satisfied
| ^ the trait `ValidGrouping<()>` is not implemented for `{integer}`
@@ -48,4 +49,5 @@ error[E0277]: the trait bound `{integer}: ValidGrouping<()>` is not satisfied
48
49
<(T0, T1, T2, T3) as ValidGrouping<__GroupByClause>>
49
50
and 131 others
50
51
= note: required because of the requirements on the impl of `ValidGrouping<()>` for `diesel::expression::operators::Eq<string_primary_key::columns::id, {integer}>`
52
+
= note: required because of the requirements on the impl of `NonAggregate` for `Grouped<diesel::expression::operators::Eq<string_primary_key::columns::id, {integer}>>`
51
53
= note: required because of the requirements on the impl of `FilterDsl<Grouped<diesel::expression::operators::Eq<string_primary_key::columns::id, {integer}>>>` for `SelectStatement<FromClause<string_primary_key::table>>`
0 commit comments