fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `for<'a> <_ as Yokeable<'a>>::Output: IsCovariant<'a>` is not satisfied 2 --> $DIR/issue-90950.rs:50:12 3 | 4LL | upcast(y) 5 | ------ ^ the trait `for<'a> IsCovariant<'a>` is not implemented for `<_ as Yokeable<'a>>::Output` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `IsCovariant<'a>` is implemented for `std::borrow::Cow<'a, T>` 10note: this is a known limitation of the trait solver that will be lifted in the future 11 --> $DIR/issue-90950.rs:50:12 12 | 13LL | upcast(y) 14 | -------^- 15 | | | 16 | | the trait solver is unable to infer the generic types that should be inferred from this argument 17 | add turbofish arguments to this call to specify the types manually, even if it's redundant 18note: required by a bound in `upcast` 19 --> $DIR/issue-90950.rs:27:42 20 | 21LL | fn upcast<Y>(x: Yoke<Y>) -> Yoke<Box<dyn IsCovariant<'static> + 'static>> where 22 | ------ required by a bound in this function 23LL | Y: for<'a> Yokeable<'a>, 24LL | for<'a> <Y as Yokeable<'a>>::Output: IsCovariant<'a> 25 | ^^^^^^^^^^^^^^^ required by this bound in `upcast` 26 27error: aborting due to previous error 28 29For more information about this error, try `rustc --explain E0277`.