Skip to content

Commit a455edf

Browse files
committed
Auto merge of #29400 - gkoz:phantom_data, r=alexcrichton
None
2 parents 88fade5 + 2a53ede commit a455edf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libcore/marker.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
use clone::Clone;
2020
use cmp;
21+
use default::Default;
2122
use option::Option;
2223
use hash::Hash;
2324
use hash::Hasher;
@@ -256,6 +257,12 @@ macro_rules! impls{
256257
$t
257258
}
258259
}
260+
261+
impl<T:?Sized> Default for $t<T> {
262+
fn default() -> $t<T> {
263+
$t
264+
}
265+
}
259266
)
260267
}
261268

0 commit comments

Comments
 (0)