Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inner attributes must before any item #1208

Closed
lht opened this issue Nov 21, 2011 · 2 comments
Closed

Inner attributes must before any item #1208

lht opened this issue Nov 21, 2011 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@lht
Copy link
Contributor

lht commented Nov 21, 2011

Compile the following code failed:

mod foo {
  #[attr];
  fn test() {}
  #[attr1];
}
fn main() {}
inner.rs:4:10: 4:11 error: expected item but found ;
inner.rs:4   #[attr1];
@brson
Copy link
Contributor

brson commented Mar 6, 2012

I am ok with the design as it is. Am inclined not to change it.

@catamorphism
Copy link
Contributor

It's labeled shouldclose so I'm closing it.

celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Add "fixme" testcase for rust-lang#1208

I also added an override for the `unreachable!()` macro to print nicer
error message.

* Document override + test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants