Fix the Debug impl of PhantomData requiring Sized on T
This commit is contained in:
parent
d6cb2791ce
commit
59df1d80f2
1 changed files with 1 additions and 1 deletions
|
@ -1569,7 +1569,7 @@ impl Debug for () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[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 {
|
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||||
f.pad("PhantomData")
|
f.pad("PhantomData")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue