1 error: missing documentation for a type alias
2 --> $DIR/lint-missing-doc.rs:11:1
4 LL | pub type PubTypedef = String;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: the lint level is defined here
8 --> $DIR/lint-missing-doc.rs:3:9
10 LL | #![deny(missing_docs)]
13 error: missing documentation for a struct
14 --> $DIR/lint-missing-doc.rs:18:1
16 LL | pub struct PubFoo {
19 error: missing documentation for a struct field
20 --> $DIR/lint-missing-doc.rs:19:5
25 error: missing documentation for a module
26 --> $DIR/lint-missing-doc.rs:30:1
28 LL | pub mod pub_module_no_dox {}
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: missing documentation for a function
32 --> $DIR/lint-missing-doc.rs:34:1
37 error: missing documentation for a trait
38 --> $DIR/lint-missing-doc.rs:52:1
43 error: missing documentation for an associated function
44 --> $DIR/lint-missing-doc.rs:53:5
49 error: missing documentation for an associated function
50 --> $DIR/lint-missing-doc.rs:54:5
52 LL | fn foo_with_impl(&self) {}
53 | ^^^^^^^^^^^^^^^^^^^^^^^
55 error: missing documentation for an associated type
56 --> $DIR/lint-missing-doc.rs:64:5
58 LL | type AssociatedType;
59 | ^^^^^^^^^^^^^^^^^^^^
61 error: missing documentation for an associated type
62 --> $DIR/lint-missing-doc.rs:65:5
64 LL | type AssociatedTypeDef = Self;
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 error: missing documentation for an associated function
68 --> $DIR/lint-missing-doc.rs:81:5
73 error: missing documentation for an enum
74 --> $DIR/lint-missing-doc.rs:118:1
76 LL | pub enum PubBaz {
79 error: missing documentation for a variant
80 --> $DIR/lint-missing-doc.rs:119:5
85 error: missing documentation for a struct field
86 --> $DIR/lint-missing-doc.rs:120:9
91 error: missing documentation for a constant
92 --> $DIR/lint-missing-doc.rs:151:1
94 LL | pub const FOO4: u32 = 0;
95 | ^^^^^^^^^^^^^^^^^^^^^^^^
97 error: missing documentation for a static
98 --> $DIR/lint-missing-doc.rs:161:1
100 LL | pub static BAR4: u32 = 0;
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^
103 error: missing documentation for a function
104 --> $DIR/lint-missing-doc.rs:167:5
106 LL | pub fn undocumented1() {}
107 | ^^^^^^^^^^^^^^^^^^^^^^
109 error: missing documentation for a function
110 --> $DIR/lint-missing-doc.rs:168:5
112 LL | pub fn undocumented2() {}
113 | ^^^^^^^^^^^^^^^^^^^^^^
115 error: missing documentation for a function
116 --> $DIR/lint-missing-doc.rs:174:9
118 LL | pub fn also_undocumented1() {}
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
121 error: missing documentation for a function
122 --> $DIR/lint-missing-doc.rs:189:5
124 LL | pub fn extern_fn_undocumented(f: f32) -> f32;
125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127 error: missing documentation for a static
128 --> $DIR/lint-missing-doc.rs:194:5
130 LL | pub static EXTERN_STATIC_UNDOCUMENTED: u8;
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 error: missing documentation for a foreign type
134 --> $DIR/lint-missing-doc.rs:199:5
136 LL | pub type ExternTyUndocumented;
137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139 error: aborting due to 22 previous errors