]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / higher-rank-trait-bounds / hrtb-higher-ranker-supertraits-transitive.stderr
1 error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied
2   --> $DIR/hrtb-higher-ranker-supertraits-transitive.rs:47:26
3    |
4 LL |     want_bar_for_any_ccx(b);
5    |     -------------------- ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
6    |     |
7    |     required by a bound introduced by this call
8    |
9 note: required by a bound in `want_bar_for_any_ccx`
10   --> $DIR/hrtb-higher-ranker-supertraits-transitive.rs:32:15
11    |
12 LL | fn want_bar_for_any_ccx<B>(b: &B)
13    |    -------------------- required by a bound in this
14 LL |     where B : for<'ccx> Bar<'ccx>
15    |               ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_bar_for_any_ccx`
16 help: consider further restricting this bound
17    |
18 LL |     where B : Qux + for<'ccx> Bar<'ccx>
19    |                   +++++++++++++++++++++
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0277`.