Closed
Description
I recently hit a bug in which I wrote a function containing only owned data, but which produced a "cannot move out of borrowed content" compiler error. I only figured it out after building a minimal example.
I'd like to improve the error message, at least to the point where if an E0507 is triggered and there's a use of the Deref trait in the immediate context, that will be pointed out as a possible cause. I'm willing to put in the work to implement this myself, but I have zero compiler experience; mentorship would be extremely helpful.
Is this considered a "feature introduction" which would need an RFC, or should I just start working on a PR? If the latter, where in the codebase should I start looking in order to handle this?