Rollup merge of #22269 - steveklabnik:gh22136, r=alexcrichton
Fixes #22136
This commit is contained in:
commit
3fe2715053
@ -2591,9 +2591,8 @@ of any reference that points to it.
|
||||
|
||||
When a [local variable](#memory-slots) is used as an
|
||||
[rvalue](#lvalues,-rvalues-and-temporaries) the variable will either be moved
|
||||
or copied, depending on its type. For types that contain [owning
|
||||
pointers](#pointer-types) or values that implement the special trait `Drop`,
|
||||
the variable is moved. All other types are copied.
|
||||
or copied, depending on its type. All values whose type implements `Copy` are
|
||||
copied, all others are moved.
|
||||
|
||||
### Literal expressions
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user