]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/suggest-deferences/issue-62530.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / traits / suggest-deferences / issue-62530.stderr
1 error[E0277]: the trait bound `&String: SomeTrait` is not satisfied
2 --> $DIR/issue-62530.rs:13:26
3 |
4 LL | takes_type_parameter(&string); // Error
5 | -------------------- ^^^^^^^ the trait `SomeTrait` is not implemented for `&String`
6 | |
7 | required by a bound introduced by this call
8 |
9 note: required by a bound in `takes_type_parameter`
10 --> $DIR/issue-62530.rs:4:44
11 |
12 LL | fn takes_type_parameter<T>(_x: T) where T: SomeTrait {}
13 | ^^^^^^^^^ required by this bound in `takes_type_parameter`
14 help: consider dereferencing here
15 |
16 LL | takes_type_parameter(&*string); // Error
17 | +
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.