Closed
Description
Due to #15989, it isn't possible to assign/mutate in pattern guards. However, assignment/mutation of variables local to the pattern guard should be perfectly safe.
As reported on reddit: https://pay.reddit.com/r/rust/comments/2ztiag/cannot_mutably_borrow_in_a_pattern_guard/ by qthree:
This code is failing: http://is.gd/cAYb5r But that's ok: http://is.gd/7pF28q
Metadata
Metadata
Assignees
Labels
No labels