You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error mentions `///`, when it's actually `//!`:
error[E0658]: attributes on expressions are experimental
--> test.rs:4:9
|
4 | //! wah
| ^^^^^^^
|
= note: see issue #15701 <#15701> for more information
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
= help: `///` is for documentation comments. For a plain comment, use `//`.
Copy file name to clipboardExpand all lines: compiler/rustc_expand/messages.ftl
+2-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ expand_attribute_single_word =
12
12
13
13
expand_attributes_on_expressions_experimental =
14
14
attributes on expressions are experimental
15
-
.help_outer_doc = `///` is for documentation comments. For a plain comment, use `//`.
15
+
.help_outer_doc = `///` is used for outer documentation comments; for a plain comment, use `//`.
16
+
.help_inner_doc = `//!` is used for inner documentation comments; for a plain comment, use `//` by removing the `!` or inserting a space in between them: `// !`
0 commit comments