about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/owned.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/owned.rs b/src/libstd/owned.rs
index 1fa86c53117..826ada8f252 100644
--- a/src/libstd/owned.rs
+++ b/src/libstd/owned.rs
@@ -26,6 +26,14 @@ pub static HEAP: () = ();
 #[cfg(test)]
 pub static HEAP: () = ();
 
+/// A type that represents a uniquely-owned value.
+#[lang="owned_box"]
+#[cfg(not(test))]
+pub struct Box<T>(*T);
+
+#[cfg(test)]
+pub struct Box<T>(*T);
+
 #[cfg(not(test))]
 impl<T:Eq> Eq for ~T {
     #[inline]