Docs suggest implemting try_fold on std::iter::iterator, which is not possible due to Try being unstable #69595
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
A-iterators
Area: Iterators
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
std::iter::Iterator
docs has this "Note to implementors" ontry_fold
:But this isn't actually possible to do in stable due to the
Try
trait being unsable. The type bounds cannot be specified correctly to match the iterator definition.The text was updated successfully, but these errors were encountered: