tutorial: only Owned types can have a Drop impl

This commit is contained in:
Daniel Micay 2013-03-28 18:40:44 -04:00
parent 467502216e
commit d4509f270b

View File

@ -982,7 +982,9 @@ when it is collected.
If an object doesn't contain garbage-collected boxes, it consists of a single
ownership tree and is given the `Owned` trait which allows it to be sent
between tasks.
between tasks. Custom destructors can only be implemented directly on types
that are `Owned`, but garbage-collected boxes can still *contain* types with
custom destructors.
# Boxes