fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `&String: SomeTrait` is not satisfied 2 --> $DIR/issue-62530.rs:13:26 3 | 4LL | 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 | 9note: required by a bound in `takes_type_parameter` 10 --> $DIR/issue-62530.rs:4:44 11 | 12LL | fn takes_type_parameter<T>(_x: T) where T: SomeTrait {} 13 | ^^^^^^^^^ required by this bound in `takes_type_parameter` 14help: consider dereferencing here 15 | 16LL | takes_type_parameter(&*string); // Error 17 | + 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0277`.