1 error[E0277]: the trait bound `Bug: Foo` is not satisfied
2 --> $DIR/issue-59324.rs:11:1
4 LL | / pub trait ThriftService<Bug: NotFoo>:
7 LL | | Service<AssocType = <Bug as Foo>::OnlyFoo>
8 | |______________________________________________^ the trait `Foo` is not implemented for `Bug`
10 help: consider further restricting this bound
12 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
15 error[E0277]: the trait bound `Bug: Foo` is not satisfied
16 --> $DIR/issue-59324.rs:11:1
18 LL | / pub trait ThriftService<Bug: NotFoo>:
21 LL | | Service<AssocType = <Bug as Foo>::OnlyFoo>
23 LL | | ) -> Self::AssocType;
25 | |_^ the trait `Foo` is not implemented for `Bug`
27 help: consider further restricting this bound
29 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
32 error[E0277]: the trait bound `Bug: Foo` is not satisfied
33 --> $DIR/issue-59324.rs:16:5
35 LL | / fn get_service(
39 LL | | ) -> Self::AssocType;
40 | |_________________________^ the trait `Foo` is not implemented for `Bug`
42 help: consider further restricting this bound
44 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
47 error[E0277]: the trait bound `(): Foo` is not satisfied
48 --> $DIR/issue-59324.rs:23:29
50 LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
51 | ^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
53 error[E0277]: the trait bound `Bug: Foo` is not satisfied
54 --> $DIR/issue-59324.rs:16:8
57 | ^^^^^^^^^^^ the trait `Foo` is not implemented for `Bug`
59 help: consider further restricting this bound
61 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
64 error: aborting due to 5 previous errors
66 For more information about this error, try `rustc --explain E0277`.