Skip to content

Commit 0eb434d

Browse files
authored
Merge pull request #837 from alercah/patch-2
Mention Box's partial field moves
2 parents 44d74e1 + 84a4bcb commit 0eb434d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/expressions/field-expr.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Finally, the fields of a struct or a reference to a struct are treated as
3030
separate entities when borrowing. If the struct does not implement
3131
[`Drop`](../special-types-and-traits.md#drop) and is stored in a local variable,
3232
this also applies to moving out of each of its fields. This also does not apply
33-
if automatic dereferencing is done though user defined types.
33+
if automatic dereferencing is done though user defined types other than
34+
[`Box`](../special-types-and-traits.html#boxt).
3435

3536
```rust
3637
struct A { f1: String, f2: String, f3: String }

0 commit comments

Comments
 (0)