CoerceUnsized for PinBox

This commit is contained in:
boats
2018-03-15 16:10:18 -07:00
parent e3c5f6958f
commit 2f1c24a60d

View File

@@ -989,3 +989,6 @@ impl<T: ?Sized> fmt::Pointer for PinBox<T> {
fmt::Pointer::fmt(&ptr, f) fmt::Pointer::fmt(&ptr, f)
} }
} }
#[unstable(feature = "pin", issue = "0")]
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {}