Forbid attrs on macros, since we don't handle them properly yet.

This commit is contained in:
Paul Stansifer 2012-11-21 22:38:27 -05:00 committed by Graydon Hoare
parent 6174a30d7c
commit 15e03e1e5e
4 changed files with 12 additions and 5 deletions

View file

@ -1,4 +1,4 @@
fn main() {
#[attr]
debug!("hi"); //~ ERROR expected item
debug!("hi"); //~ ERROR expected item after attrs
}

View file

@ -1,4 +1,4 @@
// error-pattern:expected item but found `fmt`
// error-pattern:attrs on macros are not yet supported
// Don't know how to deal with a syntax extension appearing after an
// item attribute. Probably could use a better error message.