]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-90400-1.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / type-alias-impl-trait / issue-90400-1.stderr
1 error[E0277]: the trait bound `B: Bar` is not satisfied
2   --> $DIR/issue-90400-1.rs:22:9
3    |
4 LL |         move || bar.bar()
5    |         ^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `B`
6    |
7 note: required by a bound in `<MyFoo as Foo>::foo`
8   --> $DIR/issue-90400-1.rs:21:15
9    |
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`
13    |
14 LL |     type FooFn<B: Bar> = impl FnOnce();
15    |                 +++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.