]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied |
e1599b0c | 2 | --> $DIR/hrtb-higher-ranker-supertraits.rs:18:26 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | want_foo_for_any_tcx(f); |
c295e0f8 XL |
5 | | -------------------- ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F` |
6 | | | | |
7 | | required by a bound introduced by this call | |
94222f64 XL |
8 | | |
9 | note: required by a bound in `want_foo_for_any_tcx` | |
10 | --> $DIR/hrtb-higher-ranker-supertraits.rs:22:15 | |
11 | | | |
e1599b0c | 12 | LL | fn want_foo_for_any_tcx<F>(f: &F) |
ba9703b0 | 13 | | -------------------- required by a bound in this |
e1599b0c | 14 | LL | where F : for<'tcx> Foo<'tcx> |
94222f64 | 15 | | ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_foo_for_any_tcx` |
ba9703b0 | 16 | help: consider further restricting this bound |
74b04a01 | 17 | | |
ba9703b0 | 18 | LL | where F : Foo<'x> + for<'tcx> Foo<'tcx> |
94222f64 | 19 | | +++++++++++++++++++++ |
b7449926 XL |
20 | |
21 | error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied | |
e1599b0c | 22 | --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26 |
b7449926 | 23 | | |
532ac7d7 | 24 | LL | want_bar_for_any_ccx(b); |
c295e0f8 XL |
25 | | -------------------- ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B` |
26 | | | | |
27 | | required by a bound introduced by this call | |
94222f64 XL |
28 | | |
29 | note: required by a bound in `want_bar_for_any_ccx` | |
30 | --> $DIR/hrtb-higher-ranker-supertraits.rs:39:15 | |
31 | | | |
e1599b0c | 32 | LL | fn want_bar_for_any_ccx<B>(b: &B) |
ba9703b0 | 33 | | -------------------- required by a bound in this |
e1599b0c | 34 | LL | where B : for<'ccx> Bar<'ccx> |
94222f64 | 35 | | ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_bar_for_any_ccx` |
ba9703b0 | 36 | help: consider further restricting this bound |
74b04a01 | 37 | | |
ba9703b0 | 38 | LL | where B : Bar<'x> + for<'ccx> Bar<'ccx> |
94222f64 | 39 | | +++++++++++++++++++++ |
b7449926 XL |
40 | |
41 | error: aborting due to 2 previous errors | |
42 | ||
43 | For more information about this error, try `rustc --explain E0277`. |