Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
suggestions
/
into-str.rs
blob: 9793ee801d185cfb5be7e09a50c6b3dd70d4a0a0 [
file
] [
log
] [
blame
]
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
}