blob: fdc85e9fa89567597824afc1fd3504360e1276a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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() {}
|