Rustdoc shouldn't document a struct's associated constants as methods #70475
Labels
A-associated-items
Area: Associated items (types, constants & functions)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When writing associated constants in a struct's implementation, those constants appear under the
Methods
section. Here's a minimal example:$ cargo doc
For traits though, they appear under
Associated Constants
:There should also be an
Associated Constants
section for struct documentation.The text was updated successfully, but these errors were encountered: