Commenting a macro branch throws a misleading diagnostic #92846
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Commenting a macro branch:
(https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=425968561ccf8122bba35a7396e2d5dd)
... throws an error:
Now, this error message makes sense if you think of
///
as a shorthand for#[doc = "..."]
, but imho it'd be better to print something in terms of:The text was updated successfully, but these errors were encountered: