Skip to content

Commit

Permalink
Fix the Debug impl of PhantomData requiring Sized on T
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Jan 12, 2016
1 parent d6cb279 commit 59df1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ impl Debug for () {
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<T> Debug for PhantomData<T> {
impl<T: ?Sized> Debug for PhantomData<T> {
fn fmt(&self, f: &mut Formatter) -> Result {
f.pad("PhantomData")
}
Expand Down

0 comments on commit 59df1d8

Please sign in to comment.