]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-impl-trait/issue-90400-2.stderr
New upstream version 1.68.2+dfsg1
[rustc.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`.