]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/lint-change-warnings.rs
Convert most code to new inner attribute syntax.
[rust.git] / src / test / compile-fail / lint-change-warnings.rs
index e9985430adfa5858e3b304657e81de86460c6df3..441a8410700bfeff4a32a3309354bc443cca9d2d 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deny(warnings)];
-#[allow(dead_code)];
+#![deny(warnings)]
+#![allow(dead_code)]
 
 fn main() {
     while true {} //~ ERROR: infinite