Implement CoerceUnsized for rc::Weak

Fixes #26704
This commit is contained in:
Remi Rampin 2015-07-01 15:51:17 -04:00
parent 9d67b9f0f9
commit 8bf4651e2c

View File

@ -734,6 +734,8 @@ pub struct Weak<T: ?Sized> {
impl<T: ?Sized> !marker::Send for Weak<T> {}
impl<T: ?Sized> !marker::Sync for Weak<T> {}
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
#[unstable(feature = "rc_weak",
reason = "Weak pointers may not belong in this module.")]
impl<T: ?Sized> Weak<T> {