Open
Description
types/src/lib.rs
:
pub struct HasPrivateFields {
_private: (),
}
impl HasPrivateFields {
pub const ASSOC: Self = Self { _private: () };
}
main/src/lib.rs
:
pub use types::HasPrivateFields;
Tested with cargo clean && cargo +nightly doc
.
Note that this also applies to verbose initializers.
This issue was first brought up in #97933. The previous issue was closed due to a hotfix implemented in PR #98814. However, the hotfix fails to handle the case in this issue.
Meta
rustc +nightly --version --verbose
:
rustc 1.64.0-nightly (848090dcd 2022-07-22)
binary: rustc
commit-hash: 848090dcd18553b790461132ca9d2a020aeea9a2
commit-date: 2022-07-22
host: x86_64-pc-windows-msvc
release: 1.64.0-nightly
LLVM version: 14.0.6