1
Fork 0
rust/src/test/ui/lint/lint-unknown-attr.rs

12 lines
319 B
Rust
Raw Normal View History

2013-11-11 17:51:27 +09: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 15:37:07 -07:00
#![deny(unused_attributes)]
2013-11-11 17:51:27 +09:00
#![mutable_doc] //~ ERROR unused attribute
2013-11-26 00:22:40 +09:00
#[dance] mod a {} //~ ERROR unused attribute
2013-11-11 17:51:27 +09:00
#[dance] fn main() {} //~ ERROR unused attribute