Skip to content

Commit 4b25d75

Browse files
committed
Remove outdated information about copy/move from the reference
Fixes #22136
1 parent cf636c2 commit 4b25d75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/doc/reference.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,9 +2591,8 @@ of any reference that points to it.
25912591

25922592
When a [local variable](#memory-slots) is used as an
25932593
[rvalue](#lvalues,-rvalues-and-temporaries) the variable will either be moved
2594-
or copied, depending on its type. For types that contain [owning
2595-
pointers](#pointer-types) or values that implement the special trait `Drop`,
2596-
the variable is moved. All other types are copied.
2594+
or copied, depending on its type. All values whose type implements `Copy` are
2595+
copied, all others are moved.
25972596

25982597
### Literal expressions
25992598

0 commit comments

Comments
 (0)