Skip to content

Commit

Permalink
Implement Default for PhantomData
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoz committed Oct 27, 2015
1 parent 0152a93 commit 2a53ede
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libcore/marker.rs
Expand Up @@ -18,6 +18,7 @@

use clone::Clone;
use cmp;
use default::Default;
use option::Option;
use hash::Hash;
use hash::Hasher;
Expand Down Expand Up @@ -256,6 +257,12 @@ macro_rules! impls{
$t
}
}

impl<T:?Sized> Default for $t<T> {
fn default() -> $t<T> {
$t
}
}
)
}

Expand Down

0 comments on commit 2a53ede

Please sign in to comment.