diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index bce314b6e04a9..8da8cad98a705 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -822,7 +822,9 @@ macro_rules! impl_eq { } } +impl_eq! { String, str } impl_eq! { String, &'a str } +impl_eq! { Cow<'a, str>, str } impl_eq! { Cow<'a, str>, String } #[stable(feature = "rust1", since = "1.0.0")]