fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
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 | -------------------- 9LL | 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 14error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied 15 --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26 16 | 17LL | want_bar_for_any_ccx(b); 18 | ^ the trait `for<'ccx> Bar<'ccx>` is not implemented for `B` 19... 20LL | fn want_bar_for_any_ccx<B>(b: &B) 21 | -------------------- 22LL | 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 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0277`.