about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-11-08 23:26:53 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-11-08 23:26:53 -0500
commit6943ca8dcd2f08d6e7291e30bbc6a8c99c4a28c5 (patch)
treef0a26f93fd82ae930df1b55aaa250dc434fda637 /src/libstd
parent421c63157053f72184f3548d0aa74dc1279c04f1 (diff)
downloadrust-6943ca8dcd2f08d6e7291e30bbc6a8c99c4a28c5.tar.gz
rust-6943ca8dcd2f08d6e7291e30bbc6a8c99c4a28c5.zip
make DeepClone inherit from Clone
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/clone.rs b/src/libstd/clone.rs
index 92db250ecca..584963c36ca 100644
--- a/src/libstd/clone.rs
+++ b/src/libstd/clone.rs
@@ -133,7 +133,7 @@ extern_fn_clone!(A, B, C, D, E, F, G, H)
 
 /// A trait distinct from `Clone` which represents "deep copies" of things like
 /// managed boxes which would otherwise not be copied.
-pub trait DeepClone {
+pub trait DeepClone: Clone {
     /// Return a deep copy of the value. Unlike `Clone`, the contents of shared pointer types
     /// *are* copied.
     fn deep_clone(&self) -> Self;