From 7c64f0360774c05dfc819270f8f53266b23b1ced Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 2 May 2014 14:53:33 -0700 Subject: librustc: Implement the `Box` type syntax. RFC #14. Issue #13885. --- src/libstd/owned.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libstd') 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); + +#[cfg(test)] +pub struct Box(*T); + #[cfg(not(test))] impl Eq for ~T { #[inline] -- cgit 1.4.1-3-g733a5