fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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