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>
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(
38 LL | | ) -> Self::AssocType;
39 | |_________________________^ the trait `Foo` is not implemented for `Bug`
41 help: consider further restricting this bound
43 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
46 error[E0277]: the trait bound `(): Foo` is not satisfied
47 --> $DIR/issue-59324.rs:23:29
49 LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
50 | ^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
52 error[E0277]: the trait bound `Bug: Foo` is not satisfied
53 --> $DIR/issue-59324.rs:19:10
55 LL | ) -> Self::AssocType;
56 | ^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `Bug`
58 help: consider further restricting this bound
60 LL | pub trait ThriftService<Bug: NotFoo + Foo>:
63 error: aborting due to 5 previous errors
65 For more information about this error, try `rustc --explain E0277`.