]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/into-str.rs
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
[rust.git] / src / test / ui / suggestions / into-str.rs
1 fn foo<'a, T>(_t: T) where T: Into<&'a str> {}
2
3 fn main() {
4     foo(String::new());
5     //~^ ERROR the trait bound `&str: std::convert::From<std::string::String>` is not satisfied
6 }