I don't understand how that's special casing self types? Deref coercions give up pretty easily, that's the root of this. Here it's giving up on the UFCS form only, with the autoderef working: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c0197afb83c273b0f4181ddef6fd0cf6 …
I can promise you I understand how deref coercion works today. My beef is entirely about when it is applied vs not, and how we could make it apply in the cases that it doesn't.
-
-
I'm just saying that &str == Rc<String> should work I didn't mean for this to become such a long thread XD
-
oh, i agree, i'm just reacting to the "just apply the rules that autoderef uses", because as far as I can tell that's not possible at all, they're very different.
End of conversation
New conversation -
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.