]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/rc.rs
Auto merge of #90291 - geeklint:loosen_weak_debug_bound, r=dtolnay
[rust.git] / library / alloc / src / rc.rs
index 80a5913daa6e032720e832141d4105c6d8311106..c1d853ed652160149e6911c5577e8cc93891f1a9 100644 (file)
@@ -2561,7 +2561,7 @@ fn clone(&self) -> Weak<T> {
 }
 
 #[stable(feature = "rc_weak", since = "1.4.0")]
-impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
+impl<T: ?Sized> fmt::Debug for Weak<T> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(f, "(Weak)")
     }