rust/src/test/ui/lint/lint-unknown-attr.rs

12 lines
319 B
Rust
Raw Normal View History

2013-11-11 02:51:27 -06:00
// When denying at the crate level, be sure to not get random warnings from the
// injected intrinsics by the compiler.
#![feature(custom_attribute)]
2014-10-27 17:37:07 -05:00
#![deny(unused_attributes)]
2013-11-11 02:51:27 -06:00
#![mutable_doc] //~ ERROR unused attribute
2013-11-25 09:22:40 -06:00
#[dance] mod a {} //~ ERROR unused attribute
2013-11-11 02:51:27 -06:00
#[dance] fn main() {} //~ ERROR unused attribute