Implement Default for PhantomData

This commit is contained in:
Gleb Kozyrev 2015-10-27 15:42:38 +02:00
parent 0152a93bb4
commit 2a53edefd7

View File

@ -18,6 +18,7 @@
use clone::Clone;
use cmp;
use default::Default;
use option::Option;
use hash::Hash;
use hash::Hasher;
@ -256,6 +257,12 @@ macro_rules! impls{
$t
}
}
impl<T:?Sized> Default for $t<T> {
fn default() -> $t<T> {
$t
}
}
)
}