Implement Default for PhantomData
This commit is contained in:
parent
0152a93bb4
commit
2a53edefd7
@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user