Skip to content

Commit 2f1c24a

Browse files
author
boats
committed
CoerceUnsized for PinBox
1 parent e3c5f69 commit 2f1c24a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/liballoc/boxed.rs

+3
Original file line numberDiff line numberDiff line change
@@ -989,3 +989,6 @@ impl<T: ?Sized> fmt::Pointer for PinBox<T> {
989989
fmt::Pointer::fmt(&ptr, f)
990990
}
991991
}
992+
993+
#[unstable(feature = "pin", issue = "0")]
994+
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {}

0 commit comments

Comments
 (0)