diff options
Diffstat (limited to 'src/test/ui/lint/lint-misplaced-attr.rs')
-rw-r--r-- | src/test/ui/lint/lint-misplaced-attr.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-misplaced-attr.rs b/src/test/ui/lint/lint-misplaced-attr.rs new file mode 100644 index 000000000..d06917ea3 --- /dev/null +++ b/src/test/ui/lint/lint-misplaced-attr.rs @@ -0,0 +1,10 @@ +// When denying at the crate level, be sure to not get random warnings from the +// injected intrinsics by the compiler. + +#![deny(unused_attributes)] + +mod a { + #![crate_type = "bin"] //~ ERROR should be in the root module +} + +#[crate_type = "bin"] fn main() {} //~ ERROR should be an inner |