]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/lint-unknown-attr.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / test / compile-fail / lint-unknown-attr.rs
index ce83ba464c06eb3773da3faa2afb618867335f6f..dbbf91f725dc0f97b1600ecf2cba3470be625383 100644 (file)
@@ -11,9 +11,9 @@
 // When denying at the crate level, be sure to not get random warnings from the
 // injected intrinsics by the compiler.
 
-#[deny(attribute_usage)];
+#![deny(attribute_usage)]
 
-#[mutable_doc]; //~ ERROR: unknown crate attribute
+#![mutable_doc] //~ ERROR: unknown crate attribute
 
 #[dance] mod a {} //~ ERROR: unknown attribute