]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hrtb/hrtb-higher-ranker-supertraits.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-higher-ranker-supertraits.stderr
1 error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
2 --> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
3 |
4 LL | want_foo_for_any_tcx(f);
5 | ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
6 ...
7 LL | fn want_foo_for_any_tcx<F>(f: &F)
8 | --------------------
9 LL | where F : for<'tcx> Foo<'tcx>
10 | ------------------- required by this bound in `want_foo_for_any_tcx`
11 |
12 = help: consider adding a `where for<'tcx> F: Foo<'tcx>` bound
13
14 error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied
15 --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26
16 |
17 LL | want_bar_for_any_ccx(b);
18 | ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
19 ...
20 LL | fn want_bar_for_any_ccx<B>(b: &B)
21 | --------------------
22 LL | where B : for<'ccx> Bar<'ccx>
23 | ------------------- required by this bound in `want_bar_for_any_ccx`
24 |
25 = help: consider adding a `where for<'ccx> B: Bar<'ccx>` bound
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.