Skip to content

Commit 946427b

Browse files
committed
manual: Clarify that Drop types cannot be Copy
1 parent 38ba2c4 commit 946427b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/rust.md

+1
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,7 @@ The kinds are:
27312731
: This kind includes all types that can be copied. All types with
27322732
sendable kind are copyable, as are managed boxes, managed closures,
27332733
trait types, and structural types built out of these.
2734+
Types with destructors (types that implement `Drop`) can not implement `Copy`.
27342735
_Default_
27352736
: Types with destructors, closure environments,
27362737
and various other _non-first-class_ types,

0 commit comments

Comments
 (0)