2019-02-20 11:52:23 -06:00
|
|
|
error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
|
2019-09-15 23:58:20 -05:00
|
|
|
--> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | want_foo_for_any_tcx(f);
|
2021-09-07 06:30:53 -05:00
|
|
|
| -------------------- ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `want_foo_for_any_tcx`
|
|
|
|
--> $DIR/hrtb-higher-ranker-supertraits.rs:22:15
|
|
|
|
|
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | fn want_foo_for_any_tcx<F>(f: &F)
|
2020-04-18 18:36:46 -05:00
|
|
|
| -------------------- required by a bound in this
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | where F : for<'tcx> Foo<'tcx>
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_foo_for_any_tcx`
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting this bound
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2020-03-13 21:28:14 -05:00
|
|
|
LL | where F : Foo<'x> + for<'tcx> Foo<'tcx>
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++++++++++++++++
|
2018-10-30 15:57:52 -05:00
|
|
|
|
2019-02-20 11:52:23 -06:00
|
|
|
error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied
|
2019-09-15 23:58:20 -05:00
|
|
|
--> $DIR/hrtb-higher-ranker-supertraits.rs:35:26
|
2018-10-30 15:57:52 -05:00
|
|
|
|
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | want_bar_for_any_ccx(b);
|
2021-09-07 06:30:53 -05:00
|
|
|
| -------------------- ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `want_bar_for_any_ccx`
|
|
|
|
--> $DIR/hrtb-higher-ranker-supertraits.rs:39:15
|
|
|
|
|
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | fn want_bar_for_any_ccx<B>(b: &B)
|
2020-04-18 18:36:46 -05:00
|
|
|
| -------------------- required by a bound in this
|
2019-09-04 12:17:59 -05:00
|
|
|
LL | where B : for<'ccx> Bar<'ccx>
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_bar_for_any_ccx`
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider further restricting this bound
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2020-03-13 21:28:14 -05:00
|
|
|
LL | where B : Bar<'x> + for<'ccx> Bar<'ccx>
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++++++++++++++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-11-19 09:26:04 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-02-20 11:52:23 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|