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