Forbid attrs on macros, since we don't handle them properly yet.
This commit is contained in:
parent
6174a30d7c
commit
15e03e1e5e
4 changed files with 12 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
fn main() {
|
||||
#[attr]
|
||||
debug!("hi"); //~ ERROR expected item
|
||||
debug!("hi"); //~ ERROR expected item after attrs
|
||||
}
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue