fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `&str: X` is not satisfied 2 --> $DIR/issue-86530.rs:16:7 3 | 4LL | z(" "); 5 | - ^^^ the trait `X` is not implemented for `&str` 6 | | 7 | required by a bound introduced by this call 8 | 9help: this trait has no implementations, consider adding one 10 --> $DIR/issue-86530.rs:4:1 11 | 12LL | pub trait X { 13 | ^^^^^^^^^^^ 14note: required by a bound in `z` 15 --> $DIR/issue-86530.rs:10:8 16 | 17LL | fn z<T>(t: T) 18 | - required by a bound in this function 19LL | where 20LL | T: X, 21 | ^ required by this bound in `z` 22 23error: aborting due to previous error 24 25For more information about this error, try `rustc --explain E0277`.