rust/tests/ui/where-clauses/where-clauses-method-unsatisfied.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
665 B
Plaintext
Raw Normal View History

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`
|
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`.