error[E0277]: the trait bound `djogi::Expr<std::string::String>: IntoMergeTargetExpr<SourceExprTarget, std::string::String>` is not satisfied
--> $DIR/merge_source_expr_wrong_side.rs:34:33
|
34 | .merge_set_expr(SourceExprSource::fields().label().as_expr()),
| -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoMergeTargetExpr<SourceExprTarget, std::string::String>` is not implemented for `djogi::Expr<std::string::String>`
| |
| required by a bound introduced by this call
|
help: the following other types implement trait `IntoMergeTargetExpr<T, V>`
--> djogi/src/query/merge.rs:778:1
|
778 | impl<T: Model, V> IntoMergeTargetExpr<T, V> for MergeTargetExpr<T, V> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `MergeTargetExpr<T, V>`
...
784 | impl<T: Model, V> IntoMergeTargetExpr<T, V> for FieldRef<T, V> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `FieldRef<T, V>`
...
795 | impl<T: Model, V> IntoMergeTargetExpr<T, V> for DjogiField<T, V> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `DjogiField<T, V>`
note: required by a bound in `merge::<impl DjogiField<T, V>>::merge_set_expr`
--> djogi/src/query/merge.rs:1291:12
|
1289 | pub fn merge_set_expr<S: Model, E>(self, value: E) -> MergeUpdateAssignment<S, T>
| -------------- required by a bound in this associated function
1290 | where
1291 | E: IntoMergeTargetExpr<T, V>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `merge::<impl DjogiField<T, V>>::merge_set_expr`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.