]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/issue-97576.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / traits / issue-97576.rs
1 struct Foo {
2 bar: String,
3 }
4
5 impl Foo {
6 pub fn new(bar: impl ToString) -> Self {
7 Self {
8 bar: bar.into(), //~ ERROR the trait bound `String: From<impl ToString>` is not satisfied
9 }
10 }
11 }
12
13 fn main() {}