graydon/rust — Issue #1208: Inner attributes must before any item
Author: lht
Created: 2011-11-21 17:53:24+00:00
State: open

Compile the following code failed:

```
mod foo {
#[attr];
fn test() {}
#[attr1];
}
fn main() {}
```

```c
inner.rs:4:10: 4:11 error: expected item but found ;
inner.rs:4 #[attr1];
```