I tried this code:
//! Link to [S::f]
pub use inner::S;
mod inner {
pub struct S;
impl S {
fn f() {}
}
}
I expected to see this happen: Rustdoc warns that S::f is private, the same way it would warn if S were private.
Instead, this happened: Rustdoc gives no warning and generates no link.
Meta
rustdoc --version: rustdoc 1.52.0-nightly (9778068 2021-02-07)
I tried this code:
I expected to see this happen: Rustdoc warns that
S::fis private, the same way it would warn ifSwere private.Instead, this happened: Rustdoc gives no warning and generates no link.
Meta
rustdoc --version: rustdoc 1.52.0-nightly (9778068 2021-02-07)