diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-03-28 18:40:44 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-03-28 18:41:55 -0400 |
| commit | d4509f270b57d6a8869cf45ef29f2e0313592c52 (patch) | |
| tree | 784ce139b8fb846c3e8b2061f358cf89ae0040fc | |
| parent | 467502216efabae9e209b30702fc9444b184de7a (diff) | |
| download | rust-d4509f270b57d6a8869cf45ef29f2e0313592c52.tar.gz rust-d4509f270b57d6a8869cf45ef29f2e0313592c52.zip | |
tutorial: only Owned types can have a Drop impl
| -rw-r--r-- | doc/tutorial.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 405d70678fe..9f36786648a 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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 |
