1 // compile-flags:-Z unstable-options --show-coverage
4 //! Make sure to have some docs on your crate root
11 /// This is a struct with an `#[allow(missing_docs)]`
12 pub struct AllowTheMissingDocs {
13 #[allow(missing_docs)]
14 pub empty_str: String,
17 #[allow(missing_docs)]
18 /// but also has documentation comments
21 /// The doc id just to create a boilerplate comment
25 /// A function that has a documentation
26 pub fn this_is_func() {}
28 #[allow(missing_docs)]
29 pub struct DemoStruct {
33 #[allow(missing_docs)]
36 pub struct Bar { //~ WARN
40 pub struct NeedsNoDocs;