]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-misplaced-attr.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / lint / lint-misplaced-attr.rs
CommitLineData
1a4d82fc
JJ
1// When denying at the crate level, be sure to not get random warnings from the
2// injected intrinsics by the compiler.
223e47cc 3
1a4d82fc 4#![deny(unused_attributes)]
970d7e83 5
1a4d82fc 6mod a {
94222f64 7 #![crate_type = "bin"] //~ ERROR should be in the root module
223e47cc 8}
970d7e83 9
94222f64 10#[crate_type = "bin"] fn main() {} //~ ERROR should be an inner