2013-11-06 15:30:19 +09:00
|
|
|
// When denying at the crate level, be sure to not get random warnings from the
|
|
|
|
|
// injected intrinsics by the compiler.
|
|
|
|
|
|
2014-10-27 15:37:07 -07:00
|
|
|
#![deny(unused_attributes)]
|
2013-11-06 15:30:19 +09:00
|
|
|
|
|
|
|
|
mod a {
|
2021-07-29 12:00:41 -05:00
|
|
|
#![crate_type = "bin"] //~ ERROR should be in the root module
|
2013-11-06 15:30:19 +09:00
|
|
|
}
|
|
|
|
|
|
2021-07-29 12:00:41 -05:00
|
|
|
#[crate_type = "bin"] fn main() {} //~ ERROR should be an inner
|