We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8197085 commit d71319cCopy full SHA for d71319c
src/libsyntax/parse/attr.rs
@@ -29,6 +29,9 @@ impl<'a> Parser<'a> {
29
let inner_error_reason = if just_parsed_doc_comment {
30
"an inner attribute is not permitted following an outer doc comment"
31
} else if !attrs.is_empty() {
32
+ self.diagnostic()
33
+ .struct_span_note(self.prev_span, "previous outer attribute")
34
+ .emit()
35
"an inner attribute is not permitted following an outer attribute"
36
} else {
37
DEFAULT_UNEXPECTED_INNER_ATTR_ERR_MSG
0 commit comments