]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-90400-2.stderr
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.git] / tests / ui / type-alias-impl-trait / issue-90400-2.stderr
1 error[E0277]: the trait bound `B: Bar` is not satisfied
2   --> $DIR/issue-90400-2.rs:25:9
3    |
4 LL |         MyBaz(bar)
5    |         ^^^^^^^^^^ the trait `Bar` is not implemented for `B`
6    |
7 note: required for `MyBaz<B>` to implement `Baz`
8   --> $DIR/issue-90400-2.rs:30:14
9    |
10 LL | impl<B: Bar> Baz for MyBaz<B> {
11    |         ---  ^^^     ^^^^^^^^
12    |         |
13    |         unsatisfied trait bound introduced here
14 help: consider restricting type parameter `B`
15    |
16 LL |     type FooFn<B: Bar> = impl Baz;
17    |                 +++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.