Skip to content

Commit

Permalink
Merge pull request #837 from alercah/patch-2
Browse files Browse the repository at this point in the history
Mention Box's partial field moves
  • Loading branch information
Havvy authored Nov 5, 2020
2 parents 44d74e1 + 84a4bcb commit 0eb434d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/expressions/field-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Finally, the fields of a struct or a reference to a struct are treated as
separate entities when borrowing. If the struct does not implement
[`Drop`](../special-types-and-traits.md#drop) and is stored in a local variable,
this also applies to moving out of each of its fields. This also does not apply
if automatic dereferencing is done though user defined types.
if automatic dereferencing is done though user defined types other than
[`Box`](../special-types-and-traits.html#boxt).

```rust
struct A { f1: String, f2: String, f3: String }
Expand Down

0 comments on commit 0eb434d

Please sign in to comment.