fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
707 B20 linesraw
1error[E0277]: the trait bound `Bar: Eq` is not satisfied
2  --> $DIR/where-clauses-method-unsatisfied.rs:18:7
3   |
4LL |     x.equals(&x);
5   |       ^^^^^^ the trait `Eq` is not implemented for `Bar`
6   |
7note: required by a bound in `Foo::<T>::equals`
8  --> $DIR/where-clauses-method-unsatisfied.rs:11:52
9   |
10LL |     fn equals(&self, u: &Foo<T>) -> bool where T : Eq {
11   |                                                    ^^ required by this bound in `Foo::<T>::equals`
12help: consider annotating `Bar` with `#[derive(Eq)]`
13   |
14LL + #[derive(Eq)]
15LL | struct Bar; // does not implement Eq
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.