False borrow checker error: cannot use self.x
because it was mutably borrowed
#29975
Labels
A-borrow-checker
Area: The borrow checker
Currently the borrow checker emits errors for simple cases like
the following:
The above results in
This is with
rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
.An ugly workaround for this is to make an explicit copy of
self.x
, e.g.The text was updated successfully, but these errors were encountered: