]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `&String: SomeTrait` is not satisfied |
6a06907d | 2 | --> $DIR/issue-62530.rs:13:26 |
f035d41b XL |
3 | | |
4 | LL | fn takes_type_parameter<T>(_x: T) where T: SomeTrait {} | |
5 | | --------- required by this bound in `takes_type_parameter` | |
6 | ... | |
7 | LL | 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 | ||
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0277`. |