]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-impl-associated-type-trait.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / wf / wf-impl-associated-type-trait.stderr
1 error[E0277]: the trait bound `T: MyHash` is not satisfied
2   --> $DIR/wf-impl-associated-type-trait.rs:27:5
3    |
4 LL |     type Bar = MySet<T>;
5    |     ^^^^^^^^^^^^^^^^^^^^ the trait `MyHash` is not implemented for `T`
6    |
7    = help: consider adding a `where T: MyHash` bound
8 note: required by `MySet`
9   --> $DIR/wf-impl-associated-type-trait.rs:18:1
10    |
11 LL | pub struct MySet<T:MyHash> {
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.