@@ -87,7 +87,7 @@ LL | fn new_code() {}
87
87
| ----------- the comment documents this function
88
88
|
89
89
= help: if the empty line is unintentional, remove it
90
- help: if the doc comment should not document `new_code` comment it out
90
+ help: if the doc comment should not document function `new_code` then comment it out
91
91
|
92
92
LL | // /// docs for `old_code`
93
93
| ++
@@ -107,7 +107,7 @@ LL | struct Multiple;
107
107
| --------------- the comment documents this struct
108
108
|
109
109
= help: if the empty lines are unintentional, remove them
110
- help: if the doc comment should not document `Multiple` comment it out
110
+ help: if the doc comment should not document struct `Multiple` then comment it out
111
111
|
112
112
LL ~ // /// Docs
113
113
LL ~ // /// for OldA
@@ -149,7 +149,7 @@ LL | fn new_code() {}
149
149
| ----------- the comment documents this function
150
150
|
151
151
= help: if the empty line is unintentional, remove it
152
- help: if the doc comment should not document `new_code` comment it out
152
+ help: if the doc comment should not document function `new_code` then comment it out
153
153
|
154
154
LL - /**
155
155
LL + /*
@@ -167,7 +167,7 @@ LL | fn new_code2() {}
167
167
| ------------ the comment documents this function
168
168
|
169
169
= help: if the empty line is unintentional, remove it
170
- help: if the doc comment should not document `new_code2` comment it out
170
+ help: if the doc comment should not document function `new_code2` then comment it out
171
171
|
172
172
LL | // /// Docs for `old_code2`
173
173
| ++
@@ -183,10 +183,26 @@ LL | fn bar() {}
183
183
| ------ the comment documents this function
184
184
|
185
185
= help: if the empty line is unintentional, remove it
186
- help: if the doc comment should not document `bar` comment it out
186
+ help: if the doc comment should not document function `bar` then comment it out
187
187
|
188
188
LL | // /// comment on assoc item
189
189
| ++
190
190
191
- error: aborting due to 11 previous errors
191
+ error: empty line after doc comment
192
+ --> tests/ui/empty_line_after/doc_comments.rs:159:1
193
+ |
194
+ LL | / /// Docs for this item.
195
+ LL | | // fn some_item() {}
196
+ LL | |
197
+ | |_^
198
+ LL | impl LineComment {} // or any other nameless item kind
199
+ | - the comment documents this implementation
200
+ |
201
+ = help: if the empty line is unintentional, remove it
202
+ help: if the doc comment should not document the following item then comment it out
203
+ |
204
+ LL | // /// Docs for this item.
205
+ | ++
206
+
207
+ error: aborting due to 12 previous errors
192
208
0 commit comments