diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index aefac804e4d88..0c919daa8ed11 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -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 {