We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f6c99f + 4f1168a commit 96ae518Copy full SHA for 96ae518
src/special-types-and-traits.md
@@ -60,8 +60,12 @@ type is to be destroyed.
60
61
The [`Copy`] trait changes the semantics of a type implementing it. Values
62
whose type implements `Copy` are copied rather than moved upon assignment.
63
-`Copy` cannot be implemented for types which implement `Drop`, or which have
64
-fields that are not `Copy`. `Copy` is implemented by the compiler for
+
+`Copy` can only be implemented for types which do not implement `Drop`, and whose fields are all `Copy`.
65
+For enums, this means all fields of all variants have to be `Copy`.
66
+For unions, this means all variants have to be `Copy`.
67
68
+`Copy` is implemented by the compiler for
69
70
* [Numeric types]
71
* `char`, `bool`, and [`!`]
0 commit comments