]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/issue-91594.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / issue-91594.stderr
1 error[E0277]: the trait bound `Foo: HasComponent<()>` is not satisfied
2 --> $DIR/issue-91594.rs:10:1
3 |
4 LL | impl HasComponent<<Foo as Component<Foo>>::Interface> for Foo {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HasComponent<()>` is not implemented for `Foo`
6 |
7 = help: the trait `HasComponent<<Foo as Component<Foo>>::Interface>` is implemented for `Foo`
8 note: required for `Foo` to implement `Component<Foo>`
9 --> $DIR/issue-91594.rs:13:27
10 |
11 LL | impl<M: HasComponent<()>> Component<M> for Foo {
12 | ^^^^^^^^^^^^ ^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.