]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-misplaced-attr.rs
Rollup merge of #69036 - eddyb:monoshim, r=nikomatsakis
[rust.git] / src / test / ui / lint / lint-misplaced-attr.rs
1 // When denying at the crate level, be sure to not get random warnings from the
2 // injected intrinsics by the compiler.
3
4 #![deny(unused_attributes)]
5
6 mod a {
7     #![crate_type = "bin"] //~ ERROR unused attribute
8                            //~^ ERROR should be in the root module
9 }
10
11 #[crate_type = "bin"] fn main() {} //~ ERROR unused attribute
12                                    //~^ ERROR should be an inner