]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/lint-missing-doc-code-example.rs
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!