Closed
Description
I tried this code:
pub trait Trait {
#[doc(hidden)]
fn f();
}
pub struct S;
impl Trait for S {
fn f() {}
}
I expected to see this happen: Rustdoc does not show f
in the documentation for S
.
Since f
is properly hidden in the documentation for Trait
, the link for f
is broken.
Meta
rustc --version --verbose
:
rustc 1.57.0-nightly (ac2d9fc50 2021-09-21)
Originally posted by @rust-log-analyzer in #89167 (comment)