]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/into-str.rs
Auto merge of #106977 - michaelwoerister:unord_id_collections, r=oli-obk
[rust.git] / tests / 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: From<String>` is not satisfied
6 }