]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clauses-method-unsatisfied.stderr
Modify existing bounds if they exist
[rust.git] / tests / ui / where-clauses / where-clauses-method-unsatisfied.stderr
1 error[E0277]: the trait bound `Bar: Eq` is not satisfied
2   --> $DIR/where-clauses-method-unsatisfied.rs:18:7
3    |
4 LL |     x.equals(&x);
5    |       ^^^^^^ the trait `Eq` is not implemented for `Bar`
6    |
7 note: required by a bound in `Foo::<T>::equals`
8   --> $DIR/where-clauses-method-unsatisfied.rs:11:52
9    |
10 LL |     fn equals(&self, u: &Foo<T>) -> bool where T : Eq {
11    |                                                    ^^ required by this bound in `Foo::<T>::equals`
12 help: consider annotating `Bar` with `#[derive(Eq)]`
13    |
14 LL | #[derive(Eq)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.