]> 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 9626a59ed02c077302d13ccf9b9d84d079b56722..c17a7cbc8d905a7f7484f8491e854404b382188f 100644 (file)
@@ -1,20 +1,24 @@
-#![feature(tool_lints)]
-
 #![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);