Closed
Description
Location
https://doc.rust-lang.org/std/future/trait.IntoFuture.html
https://doc.rust-lang.org/std/iter/trait.IntoIterator.html
Summary
The definition of the IntoFuture
trait looks like:
pub trait IntoFuture {
type Output;
type IntoFuture: Future<Output = Self::Output>;
fn into_future(self) -> Self::IntoFuture;
}
Rustdoc renders this as:
pub trait IntoFuture {
type Output;
type IntoFuture: Future
where
<Self::IntoFuture as Future>::Output == Self::Output;
fn into_future(self) -> Self::IntoFuture;
}
This makes the trait bound for the IntoFuture
associated type verbose and cryptic.