Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention Box's partial field moves #837

Merged
merged 2 commits into from
Nov 5, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).
Havvy marked this conversation as resolved.
Show resolved Hide resolved

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