Closed
Description
I tried this code:
#![warn(missing_docs)]
//! Crate docs
#[doc(hidden)]
pub struct Foo;
impl Foo {
pub fn bar() {}
}
I expected to see this happen: no warnings, Foo
and its method are not publicly documented.
Instead, this happened:
warning: missing documentation for an associated function
--> src/lib.rs:9:5
|
9 | pub fn bar() {}
| ^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:1:9
|
1 | #![warn(missing_docs)]
| ^^^^^^^^^^^^
warning: 1 warning emitted