syntax: improve message for misused inner attributes

This commit is contained in:
Liigo Zhuang 2014-11-08 17:23:27 +08:00
parent f89e975685
commit 0a52cc3534

View file

@ -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 {