rustdoc: Tuple structs with no fields are marked as having private fields #118180
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I would expect this to be documented as-is: as tuple structs/variants with no fields. But instead, rustdoc marks them as having private fields:
Enums can't even have private fields!
Named structs/variants do not have this issue.
Meta
rustdoc --version --verbose
:The text was updated successfully, but these errors were encountered: