1 error[E0277]: the trait bound `B: Bar` is not satisfied
2 --> $DIR/issue-90400-1.rs:22:9
5 | ^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `B`
7 note: required by a bound in `<MyFoo as Foo>::foo`
8 --> $DIR/issue-90400-1.rs:21:15
10 LL | fn foo<B: Bar>(&self, bar: B) -> Self::FooFn<B> {
11 | ^^^ required by this bound in `<MyFoo as Foo>::foo`
12 help: consider restricting type parameter `B`
14 LL | type FooFn<B: Bar> = impl FnOnce();
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.