]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/suggest-deferences/issue-62530.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / suggest-deferences / issue-62530.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `&String: SomeTrait` is not satisfied
6a06907d 2 --> $DIR/issue-62530.rs:13:26
f035d41b
XL
3 |
4LL | fn takes_type_parameter<T>(_x: T) where T: SomeTrait {}
5 | --------- required by this bound in `takes_type_parameter`
6...
7LL | takes_type_parameter(&string); // Error
8 | ^^^^^^^
9 | |
1b1a35ee 10 | the trait `SomeTrait` is not implemented for `&String`
f035d41b
XL
11 | help: consider adding dereference here: `&*string`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.