]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-missing-doc.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / lint / lint-missing-doc.stderr
1 error: missing documentation for a type alias
2   --> $DIR/lint-missing-doc.rs:21:1
3    |
4 LL | pub type PubTypedef = String; //~ ERROR: missing documentation for a type alias
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint-missing-doc.rs:13:9
9    |
10 LL | #![deny(missing_docs)]
11    |         ^^^^^^^^^^^^
12
13 error: missing documentation for a struct
14   --> $DIR/lint-missing-doc.rs:28:1
15    |
16 LL | pub struct PubFoo { //~ ERROR: missing documentation for a struct
17    | ^^^^^^^^^^^^^^^^^
18
19 error: missing documentation for a struct field
20   --> $DIR/lint-missing-doc.rs:29:5
21    |
22 LL |     pub a: isize,      //~ ERROR: missing documentation for a struct field
23    |     ^^^^^^^^^^^^
24
25 error: missing documentation for a module
26   --> $DIR/lint-missing-doc.rs:40:1
27    |
28 LL | pub mod pub_module_no_dox {} //~ ERROR: missing documentation for a module
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: missing documentation for a function
32   --> $DIR/lint-missing-doc.rs:44:1
33    |
34 LL | pub fn foo2() {} //~ ERROR: missing documentation for a function
35    | ^^^^^^^^^^^^^
36
37 error: missing documentation for a trait
38   --> $DIR/lint-missing-doc.rs:62:1
39    |
40 LL | pub trait C { //~ ERROR: missing documentation for a trait
41    | ^^^^^^^^^^^
42
43 error: missing documentation for a trait method
44   --> $DIR/lint-missing-doc.rs:63:5
45    |
46 LL |     fn foo(&self); //~ ERROR: missing documentation for a trait method
47    |     ^^^^^^^^^^^^^^
48
49 error: missing documentation for a trait method
50   --> $DIR/lint-missing-doc.rs:64:5
51    |
52 LL |     fn foo_with_impl(&self) {} //~ ERROR: missing documentation for a trait method
53    |     ^^^^^^^^^^^^^^^^^^^^^^^
54
55 error: missing documentation for an associated type
56   --> $DIR/lint-missing-doc.rs:74:5
57    |
58 LL |     type AssociatedType; //~ ERROR: missing documentation for an associated type
59    |     ^^^^^^^^^^^^^^^^^^^^
60
61 error: missing documentation for an associated type
62   --> $DIR/lint-missing-doc.rs:75:5
63    |
64 LL |     type AssociatedTypeDef = Self; //~ ERROR: missing documentation for an associated type
65    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67 error: missing documentation for a method
68   --> $DIR/lint-missing-doc.rs:91:5
69    |
70 LL |     pub fn foo() {} //~ ERROR: missing documentation for a method
71    |     ^^^^^^^^^^^^
72
73 error: missing documentation for an enum
74   --> $DIR/lint-missing-doc.rs:128:1
75    |
76 LL | pub enum PubBaz { //~ ERROR: missing documentation for an enum
77    | ^^^^^^^^^^^^^^^
78
79 error: missing documentation for a variant
80   --> $DIR/lint-missing-doc.rs:129:5
81    |
82 LL |     PubBazA { //~ ERROR: missing documentation for a variant
83    |     ^^^^^^^
84
85 error: missing documentation for a struct field
86   --> $DIR/lint-missing-doc.rs:130:9
87    |
88 LL |         a: isize, //~ ERROR: missing documentation for a struct field
89    |         ^^^^^^^^
90
91 error: missing documentation for a constant
92   --> $DIR/lint-missing-doc.rs:161:1
93    |
94 LL | pub const FOO4: u32 = 0; //~ ERROR: missing documentation for a const
95    | ^^^^^^^^^^^^^^^^^^^^^^^^
96
97 error: missing documentation for a static
98   --> $DIR/lint-missing-doc.rs:171:1
99    |
100 LL | pub static BAR4: u32 = 0; //~ ERROR: missing documentation for a static
101    | ^^^^^^^^^^^^^^^^^^^^^^^^^
102
103 error: missing documentation for a function
104   --> $DIR/lint-missing-doc.rs:177:5
105    |
106 LL |     pub fn undocumented1() {} //~ ERROR: missing documentation for a function
107    |     ^^^^^^^^^^^^^^^^^^^^^^
108
109 error: missing documentation for a function
110   --> $DIR/lint-missing-doc.rs:178:5
111    |
112 LL |     pub fn undocumented2() {} //~ ERROR: missing documentation for a function
113    |     ^^^^^^^^^^^^^^^^^^^^^^
114
115 error: missing documentation for a function
116   --> $DIR/lint-missing-doc.rs:184:9
117    |
118 LL |         pub fn also_undocumented1() {} //~ ERROR: missing documentation for a function
119    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121 error: aborting due to 19 previous errors
122