]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-91594.stderr
:arrow_up: rust-analyzer
[rust.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`.