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