rust/src/test/ui/lint/lint-unknown-attr.rs
2018-12-25 21:08:33 -07:00

12 lines
319 B
Rust

// When denying at the crate level, be sure to not get random warnings from the
// injected intrinsics by the compiler.
#![feature(custom_attribute)]
#![deny(unused_attributes)]
#![mutable_doc] //~ ERROR unused attribute
#[dance] mod a {} //~ ERROR unused attribute
#[dance] fn main() {} //~ ERROR unused attribute