]>
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 | 3 | | |
e1599b0c | 4 | LL | pub struct MySet<T:MyHash> { |
ba9703b0 | 5 | | ------ required by this bound in `MySet` |
e1599b0c | 6 | ... |
b7449926 | 7 | LL | type Bar = MySet<T>; |
136023e0 | 8 | | ^^^^^^^^ the trait `MyHash` is not implemented for `T` |
74b04a01 | 9 | | |
ba9703b0 | 10 | help: consider restricting type parameter `T` |
74b04a01 | 11 | | |
ba9703b0 XL |
12 | LL | impl<T: MyHash> Foo for T { |
13 | | ^^^^^^^^ | |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |