syntax: improve message for misused inner attributes
This commit is contained in:
parent
f89e975685
commit
0a52cc3534
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ impl<'a> ParserAttr for Parser<'a> {
|
|||
self.span_err(span,
|
||||
"an inner attribute is not permitted in \
|
||||
this context");
|
||||
self.span_help(span,
|
||||
"place inner attribute at the top of the module or block");
|
||||
}
|
||||
ast::AttrInner
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue