We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89e975 commit 0a52cc3Copy full SHA for 0a52cc3
src/libsyntax/parse/attr.rs
@@ -75,6 +75,8 @@ impl<'a> ParserAttr for Parser<'a> {
75
self.span_err(span,
76
"an inner attribute is not permitted in \
77
this context");
78
+ self.span_help(span,
79
+ "place inner attribute at the top of the module or block");
80
}
81
ast::AttrInner
82
} else {
0 commit comments