If `Into<String>` is not implemented for `&String`, why are these implementations conflicting?
问题 I asked a relevant question about why there is no implementation of From<&String> for String . I now want to create my own trait as the following: #[derive(Debug)] struct MyStruct(String); impl MyStruct { fn new<T>(t: T) -> MyStruct where T: MyIntoString, { MyStruct(t.my_into()) } } trait MyIntoString { fn my_into(self) -> String; } impl<'a> MyIntoString for &'a String { fn my_into(self) -> String { self.clone() } } impl<I> MyIntoString for I where I: Into<String>, { fn my_into(self) ->