Rustdoc unhelpful error message on missing whitespace after # #83284
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-doctests
Area: Documentation tests, run by rustdoc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I made some documentation tests for my crate, but forgot to add a space after the pound sign (
#
) like the following example:I was unaware that there should be a space after the pound sign, so I was quite startled by the resulting error message (other passed tests excluded):
After looking up the correct syntax in the rustdoc book I could easily solve it. But I assume this is not the best error message to provide to users.
Meta
rustc --version --verbose
:I am not entirely sure this is supposed to be a
Bug Report
but it did not really fit into any of the other categories as well. If I can do anything more to help please let me know.The text was updated successfully, but these errors were encountered: