Implement Default for Box<[T]>
This commit is contained in:
parent
679eb9191d
commit
73b86e4778
@ -48,6 +48,10 @@ impl<T: Default> Default for Box<T> {
|
||||
fn default() -> Box<T> { box Default::default() }
|
||||
}
|
||||
|
||||
impl<T> Default for Box<[T]> {
|
||||
fn default() -> Box<[T]> { box [] }
|
||||
}
|
||||
|
||||
#[unstable]
|
||||
impl<T: Clone> Clone for Box<T> {
|
||||
/// Returns a copy of the owned box.
|
||||
|
Loading…
x
Reference in New Issue
Block a user