2021-12-27 00:09:19 -06:00
|
|
|
error[E0277]: the trait bound `Foo: HasComponent<()>` is not satisfied
|
2023-01-12 12:51:09 -06:00
|
|
|
--> $DIR/issue-91594.rs:10:19
|
2021-12-27 00:09:19 -06:00
|
|
|
|
|
|
|
|
LL | impl HasComponent<<Foo as Component<Foo>>::Interface> for Foo {}
|
2023-01-12 12:51:09 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HasComponent<()>` is not implemented for `Foo`
|
2021-12-27 00:09:19 -06:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `HasComponent<<Foo as Component<Foo>>::Interface>` is implemented for `Foo`
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `Foo` to implement `Component<Foo>`
|
2021-12-27 00:09:19 -06:00
|
|
|
--> $DIR/issue-91594.rs:13:27
|
|
|
|
|
|
|
|
|
LL | impl<M: HasComponent<()>> Component<M> for Foo {
|
2023-01-10 21:21:11 -06:00
|
|
|
| ---------------- ^^^^^^^^^^^^ ^^^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-12-27 00:09:19 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-12-27 00:09:19 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|