When assigning to a mutable reference type, the source reference is not moved but rather implicitly reborrowed. This magical behaviour has a lot of subtle consequences, yet I can't find any mention of it in any official Rust documentation, though I seem to remember that I found the relevant documentation a while ago. Does anyone have a pointer? If not, we should probably document it in the Rust reference.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.