fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
608 B14 linesraw
1error[E0277]: the trait bound `Self: std::cmp::Eq` is not satisfied
2  --> $DIR/wf-trait-default-fn-where-clause.rs:11:31
3   |
4LL | trait Bar<T:Eq+?Sized> { }
5   |             -- required by this bound in `Bar`
6...
7LL |     fn bar<A>(&self) where A: Bar<Self> {
8   |                               ^^^^^^^^^- help: consider further restricting `Self`: `, Self: std::cmp::Eq`
9   |                               |
10   |                               the trait `std::cmp::Eq` is not implemented for `Self`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.