Open
Description
IMO, this should be a compilation failure because although Foo
is not explicitly exported, it is publicly visible via the Bar::A
variant:
lib.rs
:
#![deny(missing_docs)]
mod types;
pub use types::Bar;
types.rs
:
pub struct Foo;
/// A bar.
pub enum Bar {
/// A `Bar` variant.
A(Foo),
}
Oddly enough, it seems to also be happy with the missing crate-level docs…
Using 1.14.0 (from Fedora's repository).