Skip to content

Select all from an alias #4382

Answered by weiznich
a2kJW asked this question in Q&A
Dec 9, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Rustc is not able to infer the correct backend type in this case. You should be able to solve this by using UFCS like this: <Model as Selectable<diesel::pg::Pg>>::construct_selection

For future questions: Please always provide the complete error message as emitted by the compiler (and not some part provided by your IDE).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@a2kJW
Comment options

Answer selected by a2kJW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants