Skip to content

Trait methods with bounds on Self are shown on types that do not fulfill those bounds #100176

Closed
@notriddle

Description

@notriddle

Location

https://doc.rust-lang.org/std/collections/hash_map/struct.Keys.html#method.rev

Summary

Found in this topic on URLO.

It shows the method Iterator::rev on the page for hash_map::Keys. This is misleading, because you can't actually call that method, because Keys: !DoubleEndedIterator.

Metadata

Metadata

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions