rustc: Add crate-level attribute lint
This commit is contained in:
parent
9432e2a25d
commit
fa2077af99
2 changed files with 51 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue