Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
issue-97576.rs
blob: fdc85e9fa89567597824afc1fd3504360e1276a5 [
file
] [
log
] [
blame
]
struct
Foo
{
bar
:
String
,
}
impl
Foo
{
pub
fn
new
(
bar
:
impl
ToString
)
->
Self
{
Self
{
bar
:
bar
.
into
(),
//~ ERROR the trait bound `String: From<impl ToString>` is not satisfied
}
}
}
fn
main
()
{}