]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/wf-impl-associated-type-trait.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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:17:16
3 |
4 LL | type Bar = MySet<T>;
5 | ^^^^^^^^ the trait `MyHash` is not implemented for `T`
6 |
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`
12 help: consider restricting type parameter `T`
13 |
14 LL | impl<T: MyHash> Foo for T {
15 | ++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.