Closed
Description
The following code
rust/src/test/ui/where-clauses/where-clauses-method-unsatisfied.rs
Lines 10 to 20 in 38e5764
emits
It should point at the where T : Eq
bound as well.
Noticed in https://github.com/rust-lang/rust/pull/88719/files#r708156543:
This case has a
MiscObligation
, so for some where clauses we need to do better, but at least we point at the relevant argument. The new span pointing at the call at least hints at the user that they should look at the equals implementation to figure out why the bound was added.