]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/item_after_statement.rs
Lint items after statements in macro expansions
[rust.git] / tests / ui / item_after_statement.rs
index c17a7cbc8d905a7f7484f8491e854404b382188f..377e58e44174977a5e4bdbea2257ada3d4946633 100644 (file)
@@ -28,7 +28,10 @@ fn mac() {
     // do not lint this, because it needs to be after `a`
     macro_rules! b {
         () => {{
-            a = 6
+            a = 6;
+            fn say_something() {
+                println!("something");
+            }
         }};
     }
     b!();