]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-misplaced-attr.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[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 should be in the root module
8 }
9
10 #[crate_type = "bin"] fn main() {} //~ ERROR should be an inner