]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/item_after_statement.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / item_after_statement.rs
index 5ba94383cc690a6f35b6480efbb53d7f8ecd2b26..c17a7cbc8d905a7f7484f8491e854404b382188f 100644 (file)
@@ -1,20 +1,24 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-#![deny(items_after_statements)]
+#![warn(clippy::items_after_statements)]
 
 fn ok() {
-    fn foo() { println!("foo"); }
+    fn foo() {
+        println!("foo");
+    }
     foo();
 }
 
 fn last() {
     foo();
-    fn foo() { println!("foo"); }
+    fn foo() {
+        println!("foo");
+    }
 }
 
 fn main() {
     foo();
-    fn foo() { println!("foo"); }
+    fn foo() {
+        println!("foo");
+    }
     foo();
 }
 
@@ -23,7 +27,9 @@ fn mac() {
     println!("{}", a);
     // do not lint this, because it needs to be after `a`
     macro_rules! b {
-        () => {{ a = 6 }}
+        () => {{
+            a = 6
+        }};
     }
     b!();
     println!("{}", a);