We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Deref for Cow
1 parent 7ce3022 commit e10fc25Copy full SHA for e10fc25
library/alloc/src/borrow.rs
@@ -333,7 +333,8 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> {
333
// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
334
#[stable(feature = "rust1", since = "1.0.0")]
335
impl<B: ?Sized + ToOwned> Deref for Cow<'_, B>
336
-// where
+where
337
+ B::Owned: Borrow<B>,
338
// B::Owned: [const] Borrow<B>,
339
{
340
type Target = B;
0 commit comments