|
| 1 | +error[E0277]: `diesel::sql_types::Integer` is neither `diesel::sql_types::Bool` nor `diesel::sql_types::Nullable<Bool>` |
| 2 | + --> tests/fail/and_or_functions_must_take_boolean_expr_as_attributes.rs:15:33 |
| 3 | + | |
| 4 | +15 | .filter(users::id.eq(1).and(users::id).or(users::id)) |
| 5 | + | ^^^ the trait `BoolOrNullableBool` is not implemented for `diesel::sql_types::Integer` |
| 6 | + | |
| 7 | + = note: try to provide an expression that produces one of the expected sql types |
| 8 | + = help: the following other types implement trait `BoolOrNullableBool`: |
| 9 | + Bool |
| 10 | + Nullable<Bool> |
| 11 | +note: required by a bound in `diesel::BoolExpressionMethods::and` |
| 12 | + --> $DIESEL/src/expression_methods/bool_expression_methods.rs |
| 13 | + | |
| 14 | + | fn and<T, ST>(self, other: T) -> dsl::And<Self, T, ST> |
| 15 | + | --- required by a bound in this associated function |
| 16 | +... |
| 17 | + | ST: SqlType + TypedExpressionType + BoolOrNullableBool, |
| 18 | + | ^^^^^^^^^^^^^^^^^^ required by this bound in `BoolExpressionMethods::and` |
| 19 | + |
| 20 | +error[E0277]: `diesel::sql_types::Integer` is neither `diesel::sql_types::Bool` nor `diesel::sql_types::Nullable<Bool>` |
| 21 | + --> tests/fail/and_or_functions_must_take_boolean_expr_as_attributes.rs:15:48 |
| 22 | + | |
| 23 | +15 | .filter(users::id.eq(1).and(users::id).or(users::id)) |
| 24 | + | ^^ the trait `BoolOrNullableBool` is not implemented for `diesel::sql_types::Integer` |
| 25 | + | |
| 26 | + = note: try to provide an expression that produces one of the expected sql types |
| 27 | + = help: the following other types implement trait `BoolOrNullableBool`: |
| 28 | + Bool |
| 29 | + Nullable<Bool> |
| 30 | +note: required by a bound in `diesel::BoolExpressionMethods::or` |
| 31 | + --> $DIESEL/src/expression_methods/bool_expression_methods.rs |
| 32 | + | |
| 33 | + | fn or<T, ST>(self, other: T) -> dsl::Or<Self, T, ST> |
| 34 | + | -- required by a bound in this associated function |
| 35 | +... |
| 36 | + | ST: SqlType + TypedExpressionType + BoolOrNullableBool, |
| 37 | + | ^^^^^^^^^^^^^^^^^^ required by this bound in `BoolExpressionMethods::or` |
0 commit comments