]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/into-str.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / suggestions / into-str.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `&str: From<String>` is not satisfied
532ac7d7
XL
2 --> $DIR/into-str.rs:4:5
3 |
e1599b0c 4LL | fn foo<'a, T>(_t: T) where T: Into<&'a str> {}
ba9703b0 5 | ------------- required by this bound in `foo`
e1599b0c 6...
532ac7d7 7LL | foo(String::new());
1b1a35ee 8 | ^^^ the trait `From<String>` is not implemented for `&str`
532ac7d7 9 |
1b1a35ee 10 = note: required because of the requirements on the impl of `Into<&str>` for `String`
532ac7d7
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.