@@ -87,7 +87,7 @@ LL | fn new_code() {}
8787 | ----------- the comment documents this function
8888 |
8989 = 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
9191 |
9292LL | // /// docs for `old_code`
9393 | ++
@@ -107,7 +107,7 @@ LL | struct Multiple;
107107 | --------------- the comment documents this struct
108108 |
109109 = 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
111111 |
112112LL ~ // /// Docs
113113LL ~ // /// for OldA
@@ -149,7 +149,7 @@ LL | fn new_code() {}
149149 | ----------- the comment documents this function
150150 |
151151 = 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
153153 |
154154LL - /**
155155LL + /*
@@ -167,7 +167,7 @@ LL | fn new_code2() {}
167167 | ------------ the comment documents this function
168168 |
169169 = 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
171171 |
172172LL | // /// Docs for `old_code2`
173173 | ++
@@ -183,10 +183,26 @@ LL | fn bar() {}
183183 | ------ the comment documents this function
184184 |
185185 = 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
187187 |
188188LL | // /// comment on assoc item
189189 | ++
190190
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
192208
0 commit comments