Rustdoc shows = _
needlessly in non-trait associated constants
#134320
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.
In the trait's documentation, rustdoc renders
const REQUIRED: Struct;
andconst OPTIONAL: Struct = _;
. Here the= _
is meaningful because it signals that a trait's associated constant has some default value provided by the trait, even if that default value cannot be rendered.But in the struct's documentation, none of the 3
= _
are meaningful. All three are just noise and should be omitted.The text was updated successfully, but these errors were encountered: