]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/hrtb-higher-ranker-supertraits.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / hrtb / hrtb-higher-ranker-supertraits.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `for<'tcx> F: Foo<'tcx>` is not satisfied
e1599b0c 2 --> $DIR/hrtb-higher-ranker-supertraits.rs:18:26
b7449926 3 |
532ac7d7 4LL | want_foo_for_any_tcx(f);
c295e0f8
XL
5 | -------------------- ^ the trait `for<'tcx> Foo<'tcx>` is not implemented for `F`
6 | |
7 | required by a bound introduced by this call
94222f64
XL
8 |
9note: required by a bound in `want_foo_for_any_tcx`
10 --> $DIR/hrtb-higher-ranker-supertraits.rs:22:15
11 |
e1599b0c 12LL | fn want_foo_for_any_tcx<F>(f: &F)
ba9703b0 13 | -------------------- required by a bound in this
e1599b0c 14LL | where F : for<'tcx> Foo<'tcx>
94222f64 15 | ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_foo_for_any_tcx`
ba9703b0 16help: consider further restricting this bound
74b04a01 17 |
ba9703b0 18LL | where F : Foo<'x> + for<'tcx> Foo<'tcx>
94222f64 19 | +++++++++++++++++++++
b7449926
XL
20
21error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied
e1599b0c 22 --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26
b7449926 23 |
532ac7d7 24LL | want_bar_for_any_ccx(b);
c295e0f8
XL
25 | -------------------- ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B`
26 | |
27 | required by a bound introduced by this call
94222f64
XL
28 |
29note: required by a bound in `want_bar_for_any_ccx`
30 --> $DIR/hrtb-higher-ranker-supertraits.rs:39:15
31 |
e1599b0c 32LL | fn want_bar_for_any_ccx<B>(b: &B)
ba9703b0 33 | -------------------- required by a bound in this
e1599b0c 34LL | where B : for<'ccx> Bar<'ccx>
94222f64 35 | ^^^^^^^^^^^^^^^^^^^ required by this bound in `want_bar_for_any_ccx`
ba9703b0 36help: consider further restricting this bound
74b04a01 37 |
ba9703b0 38LL | where B : Bar<'x> + for<'ccx> Bar<'ccx>
94222f64 39 | +++++++++++++++++++++
b7449926
XL
40
41error: aborting due to 2 previous errors
42
43For more information about this error, try `rustc --explain E0277`.