We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
&mut T
1 parent dda31c8 commit 596c577Copy full SHA for 596c577
src/expressions.md
@@ -241,7 +241,7 @@ The following expressions can be mutable place expression contexts:
241
* [Temporary values].
242
* [Fields][field]: this evaluates the subexpression in a mutable place expression context.
243
* [Dereferences][deref] of a `*mut T` pointer.
244
-* Dereference of a variable, or field of a variable, with type `&mut T`.
+* Dereference of a movable place, with type `&mut T`. This includes variables and their fields, as well as temporaries.
245
Note: This is an exception to the requirement of the next rule.
246
* Dereferences of a type that implements `DerefMut`:
247
this then requires that the value being dereferenced is evaluated in a mutable place expression context.
0 commit comments