Skip to content

Commit

Permalink
bump compile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed Feb 7, 2025
1 parent 239bb4e commit 4d653ca
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ error[E0277]: the trait bound `Untyped: load_dsl::private::CompatibleType<User,
|
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `User` and in your query `.select(User::as_select())` to get a better error message
= help: the trait `load_dsl::private::CompatibleType<U, DB>` is implemented for `Untyped`
= note: required for `SqlQuery` to implement `LoadQuery<'_, _, User>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ error[E0277]: the trait bound `(diesel::sql_types::Integer, diesel::sql_types::T
= help: the trait `load_dsl::private::CompatibleType<UserWithToFewFields, _>` is not implemented for `(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::Text>)`
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `UserWithToFewFields` and in your query `.select(UserWithToFewFields::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down Expand Up @@ -42,7 +42,7 @@ error[E0277]: the trait bound `(diesel::sql_types::Integer, diesel::sql_types::T
= help: the trait `load_dsl::private::CompatibleType<UserWithToManyFields, _>` is not implemented for `(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::Text>)`
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `UserWithToManyFields` and in your query `.select(UserWithToManyFields::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down Expand Up @@ -75,7 +75,7 @@ error[E0277]: the trait bound `(diesel::sql_types::Integer, diesel::sql_types::T
= help: the trait `load_dsl::private::CompatibleType<UserWrongOrder, _>` is not implemented for `(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::Text>)`
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `UserWrongOrder` and in your query `.select(UserWrongOrder::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down Expand Up @@ -108,7 +108,7 @@ error[E0277]: the trait bound `(diesel::sql_types::Integer, diesel::sql_types::T
= help: the trait `load_dsl::private::CompatibleType<UserTypeMismatch, _>` is not implemented for `(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Nullable<diesel::sql_types::Text>)`
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `UserTypeMismatch` and in your query `.select(UserTypeMismatch::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0277]: the trait bound `(diesel::sql_types::Integer, diesel::sql_types::T
|
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `User` and in your query `.select(User::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down
2 changes: 1 addition & 1 deletion diesel_compile_tests/tests/fail/selectable.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ error[E0277]: the trait bound `(diesel::expression::select_by::SelectBy<Post, _>
= help: the trait `load_dsl::private::CompatibleType<((i32, std::string::String), std::string::String), _>` is not implemented for `(diesel::expression::select_by::SelectBy<Post, _>, diesel::sql_types::Text)`
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `((i32, std::string::String), std::string::String)` and in your query `.select(((i32, std::string::String), std::string::String)::as_select())` to get a better error message
= help: the following other types implement trait `load_dsl::private::CompatibleType<U, DB>`:
(ST0, ST1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ error[E0277]: the trait bound `diesel::expression::select_by::SelectBy<User, _>:
|
= note: this is a mismatch between what your query returns and what your type expects the query to return
= note: the fields in your struct need to match the fields returned by your query in count, order and type
= note: consider using `#[derive(Selectable)]` or #[derive(QueryableByName)] + `#[diesel(check_for_backend(_))]`
= note: consider using `#[diesel(check_for_backend(_))]` on either `#[derive(Selectable)]` or #[derive(QueryableByName)]
on your struct `_` and in your query `.select(_::as_select())` to get a better error message
= help: the trait `load_dsl::private::CompatibleType<U, DB>` is implemented for `diesel::expression::select_by::SelectBy<U, DB>`
= note: required for `SelectStatement<FromClause<users::table>, diesel::query_builder::select_clause::SelectClause<diesel::expression::select_by::SelectBy<User, _>>>` to implement `LoadQuery<'_, _, _>`
Expand Down

0 comments on commit 4d653ca

Please sign in to comment.