Assuming `a` does not have an inherent method named `eq`, I don't think those resolve differently at all. They certainly both fail in the same way with the code mentioned
> it's fundamentally how traits [have arbitrarily been chosen (which is fine) to] work FTFY ;)
-
-
right, i'm trying to say this isn't specific to deref coercions. (and also that it's not the same rules as .bar() at all, autoderef works differently from deref coercions)https://twitter.com/sgrif/status/1199080936320557056 …
-
The rules I assume we'd use are basically an extension of that, but I def can't fit anything more in depth than "fewest derefs left to right wins" without writing a formal RFC (which I'd love to do but probably won't any time soon)
- 4 more replies
New conversation -
-
-
Note: Ignoring impls which cannot possibly apply via deref coercion is fundamentally different than having rules to let the compiler handle legitimately ambiguous cases. I'm not trying to claim that both should be obviously done
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.