diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index d1fc921ffdab..0a06f7c0005f 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -48,6 +48,10 @@ impl Default for Box { fn default() -> Box { box Default::default() } } +impl Default for Box<[T]> { + fn default() -> Box<[T]> { box [] } +} + #[unstable] impl Clone for Box { /// Returns a copy of the owned box.