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