1 #![feature(rustdoc_missing_doc_code_examples)]
3 #![deny(rustdoc::missing_doc_code_examples)]
14 /// println!("hello");
19 #[allow(missing_docs)]
20 pub mod module1 { //~ ERROR
23 #[allow(rustdoc::missing_doc_code_examples)]
34 /// println!("hello");
43 /// Doc, but no code example and it's fine!
44 pub const Const: u32 = 0;
45 /// Doc, but no code example and it's fine!
46 pub static Static: u32 = 0;
47 /// Doc, but no code example and it's fine!
53 /// Doc, but no code example and it's fine!
60 /// Doc, but no code example and it's fine!
68 /// Doc, but no code example and it's fine!
70 /// Doc, but no code example and it's fine!
74 // no code example and it's fine!
75 impl Clone for Struct {
76 fn clone(&self) -> Self {
77 Self { field: self.field }
86 /// println!("hello");
89 pub struct NiceStruct;