2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: the trait bound `Bar: Eq` is not satisfied
|
2022-08-16 06:27:22 +00:00
|
|
|
--> $DIR/where-clauses-method-unsatisfied.rs:18:7
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | x.equals(&x);
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^^^^^^ the trait `Eq` is not implemented for `Bar`
|
2021-10-05 23:04:09 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `Foo::<T>::equals`
|
|
|
|
--> $DIR/where-clauses-method-unsatisfied.rs:11:52
|
|
|
|
|
|
|
|
|
LL | fn equals(&self, u: &Foo<T>) -> bool where T : Eq {
|
|
|
|
| ^^ required by this bound in `Foo::<T>::equals`
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `Bar` with `#[derive(Eq)]`
|
|
|
|
|
|
|
|
|
LL | #[derive(Eq)]
|
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|