fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.3 KiB35 linesraw
1error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
2  --> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
3   |
4LL |     want_foo_for_any_tcx(f);
5   |                          ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
6...
7LL | fn want_foo_for_any_tcx<F>(f: &F)
8   |    -------------------- required by a bound in this
9LL |     where F : for<'tcx> Foo<'tcx>
10   |               ------------------- required by this bound in `want_foo_for_any_tcx`
11   |
12help: consider further restricting this bound
13   |
14LL |     where F : Foo<'x> + for<'tcx> Foo<'tcx>
15   |                       ^^^^^^^^^^^^^^^^^^^^^
16
17error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied
18  --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26
19   |
20LL |     want_bar_for_any_ccx(b);
21   |                          ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
22...
23LL | fn want_bar_for_any_ccx<B>(b: &B)
24   |    -------------------- required by a bound in this
25LL |     where B : for<'ccx> Bar<'ccx>
26   |               ------------------- required by this bound in `want_bar_for_any_ccx`
27   |
28help: consider further restricting this bound
29   |
30LL |     where B : Bar<'x> + for<'ccx> Bar<'ccx>
31   |                       ^^^^^^^^^^^^^^^^^^^^^
32
33error: aborting due to 2 previous errors
34
35For more information about this error, try `rustc --explain E0277`.