fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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