1 error[E0277]: the trait bound `X: Foo<X>` is not satisfied
2 --> $DIR/where-clause-method-substituion.rs:20:16
5 | ^ the trait `Foo<X>` is not implemented for `X`
7 note: required by a bound in `Bar::method`
8 --> $DIR/where-clause-method-substituion.rs:6:34
10 LL | fn method<B>(&self) where A: Foo<B>;
11 | ^^^^^^ required by this bound in `Bar::method`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0277`.