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