fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.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 | 12help: consider further restricting this bound with `+ for<'tcx> Foo<'tcx>` 13 --> $DIR/hrtb-higher-ranker-supertraits.rs:15:11 14 | 15LL | where F : Foo<'x> 16 | ^^^^^^^^^^^ 17 18error[E0277]: the trait bound `for<'ccx> B: Bar<'ccx>` is not satisfied 19 --> $DIR/hrtb-higher-ranker-supertraits.rs:35:26 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 | 29help: consider further restricting this bound with `+ for<'ccx> Bar<'ccx>` 30 --> $DIR/hrtb-higher-ranker-supertraits.rs:29:11 31 | 32LL | where B : Bar<'x> 33 | ^^^^^^^^^^^ 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0277`.