summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-misplaced-attr.rs
blob: d06917ea3f8abea25c0d49db0accfe9003737c5e (plain)
1
2
3
4
5
6
7
8
9
10
// When denying at the crate level, be sure to not get random warnings from the
// injected intrinsics by the compiler.

#![deny(unused_attributes)]

mod a {
    #![crate_type = "bin"] //~ ERROR should be in the root module
}

#[crate_type = "bin"] fn main() {} //~ ERROR should be an inner