17
17
#![ doc="More garbage" ]
18
18
19
19
type Typedef = String ;
20
- pub type PubTypedef = String ; //~ ERROR: missing documentation
20
+ pub type PubTypedef = String ; //~ ERROR: missing documentation for a type alias
21
21
22
22
struct Foo {
23
23
a : isize ,
24
24
b : isize ,
25
25
}
26
26
27
- pub struct PubFoo { //~ ERROR: missing documentation
28
- pub a : isize , //~ ERROR: missing documentation
27
+ pub struct PubFoo { //~ ERROR: missing documentation for a struct
28
+ pub a : isize , //~ ERROR: missing documentation for a struct field
29
29
b : isize ,
30
30
}
31
31
@@ -36,11 +36,11 @@ pub struct PubFoo2 {
36
36
}
37
37
38
38
mod module_no_dox { }
39
- pub mod pub_module_no_dox { } //~ ERROR: missing documentation
39
+ pub mod pub_module_no_dox { } //~ ERROR: missing documentation for a module
40
40
41
41
/// dox
42
42
pub fn foo ( ) { }
43
- pub fn foo2 ( ) { } //~ ERROR: missing documentation
43
+ pub fn foo2 ( ) { } //~ ERROR: missing documentation for a function
44
44
fn foo3 ( ) { }
45
45
#[ allow( missing_docs) ] pub fn foo4 ( ) { }
46
46
@@ -58,9 +58,9 @@ trait B {
58
58
fn foo_with_impl ( & self ) { }
59
59
}
60
60
61
- pub trait C { //~ ERROR: missing documentation
62
- fn foo ( & self ) ; //~ ERROR: missing documentation
63
- fn foo_with_impl ( & self ) { } //~ ERROR: missing documentation
61
+ pub trait C { //~ ERROR: missing documentation for a trait
62
+ fn foo ( & self ) ; //~ ERROR: missing documentation for a type method
63
+ fn foo_with_impl ( & self ) { } //~ ERROR: missing documentation for a method
64
64
}
65
65
66
66
#[ allow( missing_docs) ]
@@ -70,8 +70,8 @@ pub trait D {
70
70
71
71
/// dox
72
72
pub trait E {
73
- type AssociatedType ; //~ ERROR: missing documentation
74
- type AssociatedTypeDef = Self ; //~ ERROR: missing documentation
73
+ type AssociatedType ; //~ ERROR: missing documentation for an associated type
74
+ type AssociatedTypeDef = Self ; //~ ERROR: missing documentation for an associated type
75
75
76
76
/// dox
77
77
type DocumentedType ;
@@ -87,7 +87,7 @@ impl Foo {
87
87
}
88
88
89
89
impl PubFoo {
90
- pub fn foo ( ) { } //~ ERROR: missing documentation
90
+ pub fn foo ( ) { } //~ ERROR: missing documentation for a method
91
91
/// dox
92
92
pub fn foo1 ( ) { }
93
93
fn foo2 ( ) { }
@@ -124,9 +124,9 @@ enum Baz {
124
124
BarB
125
125
}
126
126
127
- pub enum PubBaz { //~ ERROR: missing documentation
128
- PubBazA { //~ ERROR: missing documentation
129
- a : isize , //~ ERROR: missing documentation
127
+ pub enum PubBaz { //~ ERROR: missing documentation for an enum
128
+ PubBazA { //~ ERROR: missing documentation for a variant
129
+ a : isize , //~ ERROR: missing documentation for a struct field
130
130
} ,
131
131
}
132
132
@@ -152,14 +152,14 @@ pub fn baz() {}
152
152
mod internal_impl {
153
153
/// dox
154
154
pub fn documented ( ) { }
155
- pub fn undocumented1 ( ) { } //~ ERROR: missing documentation
156
- pub fn undocumented2 ( ) { } //~ ERROR: missing documentation
155
+ pub fn undocumented1 ( ) { } //~ ERROR: missing documentation for a function
156
+ pub fn undocumented2 ( ) { } //~ ERROR: missing documentation for a function
157
157
fn undocumented3 ( ) { }
158
158
/// dox
159
159
pub mod globbed {
160
160
/// dox
161
161
pub fn also_documented ( ) { }
162
- pub fn also_undocumented1 ( ) { } //~ ERROR: missing documentation
162
+ pub fn also_undocumented1 ( ) { } //~ ERROR: missing documentation for a function
163
163
fn also_undocumented2 ( ) { }
164
164
}
165
165
}
0 commit comments