1 error[E0277]: the trait bound `&str: std::convert::From<std::string::String>` is not satisfied
2 --> $DIR/into-str.rs:4:5
4 LL | fn foo<'a, T>(_t: T) where T: Into<&'a str> {}
5 | --- ------------- required by this bound in `foo`
7 LL | foo(String::new());
8 | ^^^ the trait `std::convert::From<std::string::String>` is not implemented for `&str`
10 = note: to coerce a `std::string::String` into a `&str`, use `&*` as a prefix
11 = note: `std::convert::From<std::string::String>` is implemented for `&mut str`, but not for `&str`
12 = note: required because of the requirements on the impl of `std::convert::Into<&str>` for `std::string::String`
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.