1 error: missing documentation for a type alias
2 --> $DIR/lint-missing-doc.rs:21:1
4 LL | pub type PubTypedef = String; //~ ERROR: missing documentation for a type alias
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: lint level defined here
8 --> $DIR/lint-missing-doc.rs:13:9
10 LL | #![deny(missing_docs)]
13 error: missing documentation for a struct
14 --> $DIR/lint-missing-doc.rs:28:1
16 LL | pub struct PubFoo { //~ ERROR: missing documentation for a struct
19 error: missing documentation for a struct field
20 --> $DIR/lint-missing-doc.rs:29:5
22 LL | pub a: isize, //~ ERROR: missing documentation for a struct field
25 error: missing documentation for a module
26 --> $DIR/lint-missing-doc.rs:40:1
28 LL | pub mod pub_module_no_dox {} //~ ERROR: missing documentation for a module
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: missing documentation for a function
32 --> $DIR/lint-missing-doc.rs:44:1
34 LL | pub fn foo2() {} //~ ERROR: missing documentation for a function
37 error: missing documentation for a trait
38 --> $DIR/lint-missing-doc.rs:62:1
40 LL | pub trait C { //~ ERROR: missing documentation for a trait
43 error: missing documentation for a trait method
44 --> $DIR/lint-missing-doc.rs:63:5
46 LL | fn foo(&self); //~ ERROR: missing documentation for a trait method
49 error: missing documentation for a trait method
50 --> $DIR/lint-missing-doc.rs:64:5
52 LL | fn foo_with_impl(&self) {} //~ ERROR: missing documentation for a trait method
53 | ^^^^^^^^^^^^^^^^^^^^^^^
55 error: missing documentation for an associated type
56 --> $DIR/lint-missing-doc.rs:74:5
58 LL | type AssociatedType; //~ ERROR: missing documentation for an associated type
59 | ^^^^^^^^^^^^^^^^^^^^
61 error: missing documentation for an associated type
62 --> $DIR/lint-missing-doc.rs:75:5
64 LL | type AssociatedTypeDef = Self; //~ ERROR: missing documentation for an associated type
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 error: missing documentation for a method
68 --> $DIR/lint-missing-doc.rs:91:5
70 LL | pub fn foo() {} //~ ERROR: missing documentation for a method
73 error: missing documentation for an enum
74 --> $DIR/lint-missing-doc.rs:128:1
76 LL | pub enum PubBaz { //~ ERROR: missing documentation for an enum
79 error: missing documentation for a variant
80 --> $DIR/lint-missing-doc.rs:129:5
82 LL | PubBazA { //~ ERROR: missing documentation for a variant
85 error: missing documentation for a struct field
86 --> $DIR/lint-missing-doc.rs:130:9
88 LL | a: isize, //~ ERROR: missing documentation for a struct field
91 error: missing documentation for a constant
92 --> $DIR/lint-missing-doc.rs:161:1
94 LL | pub const FOO4: u32 = 0; //~ ERROR: missing documentation for a const
95 | ^^^^^^^^^^^^^^^^^^^^^^^^
97 error: missing documentation for a static
98 --> $DIR/lint-missing-doc.rs:171:1
100 LL | pub static BAR4: u32 = 0; //~ ERROR: missing documentation for a static
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^
103 error: missing documentation for a function
104 --> $DIR/lint-missing-doc.rs:177:5
106 LL | pub fn undocumented1() {} //~ ERROR: missing documentation for a function
107 | ^^^^^^^^^^^^^^^^^^^^^^
109 error: missing documentation for a function
110 --> $DIR/lint-missing-doc.rs:178:5
112 LL | pub fn undocumented2() {} //~ ERROR: missing documentation for a function
113 | ^^^^^^^^^^^^^^^^^^^^^^
115 error: missing documentation for a function
116 --> $DIR/lint-missing-doc.rs:184:9
118 LL | pub fn also_undocumented1() {} //~ ERROR: missing documentation for a function
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 error: aborting due to 19 previous errors