error[E0277]: the trait bound `&str: AsExpression<::SqlType>` is not satisfied --> $DIR/as_expression.rs:57:21 | LL | SelectInt.check("bar"); | ----- ^^^^^ the trait `AsExpression<::SqlType>` is not implemented for `&str` | | | required by a bound introduced by this call | = help: the trait `AsExpression` is implemented for `&str` note: required by a bound in `Foo::check` --> $DIR/as_expression.rs:48:12 | LL | fn check(&self, _: T) -> ::SqlType>>::Expression | ----- required by a bound in this associated function LL | where LL | T: AsExpression, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Foo::check` error: aborting due to 1 previous error For more information about this error, try `rustc --explain E0277`.