]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-misplaced-attr.rs
Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errors
[rust.git] / tests / 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 should be in the root module
8 }
9
10 #[crate_type = "bin"] fn main() {} //~ ERROR should be an inner