]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/match.rs
Do not flatten match arm block with leading attributes
[rust.git] / tests / target / match.rs
index e2c522bea10b177777870bb309f984b30127be0a..1bf3fb758ee868379eeb9c22038b59d9c8bf33d6 100644 (file)
@@ -608,3 +608,22 @@ fn issue_3774() {
         }
     }
 }
+
+// #4109
+fn issue_4109() {
+    match () {
+        _ => {
+            #[cfg(debug_assertions)]
+            {
+                println!("Foo");
+            }
+        }
+    }
+
+    match () {
+        _ => {
+            #[allow(unsafe_code)]
+            unsafe {}
+        }
+    }
+}