You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
one can't get and set in the same function call. (If the f.get() is placed in a temporary variable, then of course this works, but this is such a common idiom that I would think Rust should avoid requiring that).
I wonder if this could be improved? It seems like, if the borrow of the f.get() happens first, before the f.set, then it would be possible.
The text was updated successfully, but these errors were encountered:
In an example like
one can't get and set in the same function call. (If the f.get() is placed in a temporary variable, then of course this works, but this is such a common idiom that I would think Rust should avoid requiring that).
I wonder if this could be improved? It seems like, if the borrow of the f.get() happens first, before the f.set, then it would be possible.
The text was updated successfully, but these errors were encountered: