rustc: Add crate-level attribute lint

This commit is contained in:
klutzy 2013-11-26 00:22:40 +09:00
parent 9432e2a25d
commit fa2077af99
2 changed files with 51 additions and 34 deletions

View file

@ -13,6 +13,8 @@
#[deny(attribute_usage)];
#[mutable_doc]; //~ ERROR: unknown crate attribute
#[dance] mod a {} //~ ERROR: unknown attribute
#[dance] fn main() {} //~ ERROR: unknown attribute