]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/match.rs
Add extra tests for match arm placement
[rust.git] / tests / target / match.rs
index d7227a0da59cc1be76012d5fb70d065640cd026a..6e330505a9b8af75dd8adba46ec380034284d4d3 100644 (file)
@@ -199,3 +199,14 @@ fn issue355() {
                                                                                 dddddddddd),
     }
 }
+
+fn issue280() {
+    {
+        match x {
+            CompressionMode::DiscardNewline | CompressionMode::CompressWhitespaceNewline =>
+                ch == '\n',
+            ast::ItemConst(ref typ, ref expr) =>
+                self.process_static_or_const_item(item, &typ, &expr),
+        }
+    }
+}