Skip to content

Commit d4509f2

Browse files
committed
tutorial: only Owned types can have a Drop impl
1 parent 4675022 commit d4509f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/tutorial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,9 @@ when it is collected.
982982

983983
If an object doesn't contain garbage-collected boxes, it consists of a single
984984
ownership tree and is given the `Owned` trait which allows it to be sent
985-
between tasks.
985+
between tasks. Custom destructors can only be implemented directly on types
986+
that are `Owned`, but garbage-collected boxes can still *contain* types with
987+
custom destructors.
986988

987989
# Boxes
988990

0 commit comments

Comments
 (0)