about summary refs log tree commit diff
path: root/src/test/ui/suggestions/into-str.rs
blob: 9793ee801d185cfb5be7e09a50c6b3dd70d4a0a0 (plain)
1
2
3
4
5
6
fn foo<'a, T>(_t: T) where T: Into<&'a str> {}

fn main() {
    foo(String::new());
    //~^ ERROR the trait bound `&str: std::convert::From<std::string::String>` is not satisfied
}