]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/match.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / match.rs
index b7f41c1dd6b802bb19f8ae87d347895eab274d6d..2c238ea8a685ff4214732d0471698017cf7662c5 100644 (file)
@@ -12,7 +12,6 @@ fn foo() {
             an_expression;
             foo()
         }
-        // Perhaps this should introduce braces?
         Foo(ref bar) => {
             aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
         }
@@ -93,6 +92,15 @@ fn main() {
              true,
              true)
         }
+    };
+
+    match x {
+        y => {
+            // Block with comment. Preserve me.
+        }
+        z => {
+            stmt();
+        }
     }
 }