2 #![deny(rustdoc::missing_doc_code_examples)]
13 /// println!("hello");
18 #[allow(missing_docs)]
19 pub mod module1 { //~ ERROR
22 #[allow(rustdoc::missing_doc_code_examples)]
33 /// println!("hello");
42 /// Doc, but no code example and it's fine!
43 pub const Const: u32 = 0;
44 /// Doc, but no code example and it's fine!
45 pub static Static: u32 = 0;
46 /// Doc, but no code example and it's fine!
52 /// Doc, but no code example and it's fine!
59 /// Doc, but no code example and it's fine!
67 /// Doc, but no code example and it's fine!
69 /// Doc, but no code example and it's fine!
73 // no code example and it's fine!
74 impl Clone for Struct {
75 fn clone(&self) -> Self {
76 Self { field: self.field }
85 /// println!("hello");
88 pub struct NiceStruct;