rust/tests/ui/lint/lint-misplaced-attr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
291 B
Rust
Raw Normal View History

2013-11-06 06:30:19 +00:00
// When denying at the crate level, be sure to not get random warnings from the
// injected intrinsics by the compiler.
2014-10-27 22:37:07 +00:00
#![deny(unused_attributes)]
2013-11-06 06:30:19 +00:00
mod a {
#![crate_type = "bin"] //~ ERROR should be in the root module
2013-11-06 06:30:19 +00:00
}
#[crate_type = "bin"] fn main() {} //~ ERROR should be an inner