error[E0277]: the trait bound `Vec<InsertSelectColumn<..., ...>>: IntoInsertColumns<..., ...>` is not satisfied
--> $DIR/insert_select_wrong_side_mapping.rs:37:44
|
37 | .insert_into::<WrongSideTarget, _, _>(|target, source| {
| ----------- ^ unsatisfied trait bound
| |
| required by a bound introduced by this call
|
help: the trait `IntoInsertColumns<WrongSideSource, WrongSideTarget>` is not implemented for `Vec<InsertSelectColumn<WrongSideTarget, WrongSideSource>>`
but trait `IntoInsertColumns<WrongSideTarget, WrongSideSource>` is implemented for it
--> djogi/src/query/insert_select.rs:1113:1
|
1113 | impl<S: Model, T: Model> IntoInsertColumns<S, T> for Vec<InsertSelectColumn<S, T>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `insert_select::<impl QuerySet<S>>::insert_into`
--> djogi/src/query/insert_select.rs:2523:12
|
2519 | pub fn insert_into<T, F, I>(self, f: F) -> InsertSelectStmt<S, T>
| ----------- required by a bound in this associated function
...
2523 | I: IntoInsertColumns<S, T>,
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `insert_select::<impl QuerySet<S>>::insert_into`
= note: the full name for the type has been written to '$LONGTYPE_FILE'
= note: consider using `--verbose` to print the full type name to the console
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.