]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `T: MyHash` is not satisfied |
136023e0 | 2 | --> $DIR/wf-impl-associated-type-trait.rs:17:16 |
b7449926 XL |
3 | | |
4 | LL | type Bar = MySet<T>; | |
136023e0 | 5 | | ^^^^^^^^ the trait `MyHash` is not implemented for `T` |
74b04a01 | 6 | | |
94222f64 XL |
7 | note: required by a bound in `MySet` |
8 | --> $DIR/wf-impl-associated-type-trait.rs:8:20 | |
9 | | | |
10 | LL | pub struct MySet<T:MyHash> { | |
11 | | ^^^^^^ required by this bound in `MySet` | |
ba9703b0 | 12 | help: consider restricting type parameter `T` |
74b04a01 | 13 | | |
ba9703b0 | 14 | LL | impl<T: MyHash> Foo for T { |
94222f64 | 15 | | ++++++++ |
b7449926 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
19 | For more information about this error, try `rustc --explain E0277`. |