Borrowck doesn't handle &mut correctly anymore #3765
Labels
A-lifetimes
Area: Lifetimes / regions
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
This USED to be an error, but doesn't seem to be anymore:
In particular it should not be allowed to simultaneously have an &mut and an & in scope. I recall that I changed the rules at some point around the creation of &mut pointers—that used to be considered equivalent to writing to the variable in question. I should not have changed that rule!
The text was updated successfully, but these errors were encountered: