Open
Description
opened on Mar 10, 2021
let a = "a".to_string();
// compiles
println!("{}", "b" > &a);
// doesn't compile
// println!("{}", &a < "b");
We have impl PartialEq<str> for String
and impl PartialEq<&str> for String
, but no matching impls for PartialOrd
. Can we add these impls to round it out?
Activity