about summary refs log tree commit diff
path: root/tests/source/expr.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-09-22 06:57:52 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-09-22 09:35:50 +0530
commit106f7251fbe68a2e4a2b483fc4793f6bcd5d49a5 (patch)
tree0731734574986f45d30de9324f465f2fc7836251 /tests/source/expr.rs
parentabdb69392296233c81a6ffb4247e785f76547706 (diff)
Add tests, reformat expr
Diffstat (limited to 'tests/source/expr.rs')
-rw-r--r--tests/source/expr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs
index faa0d3775c7..03265da7e1c 100644
--- a/tests/source/expr.rs
+++ b/tests/source/expr.rs
@@ -130,6 +130,16 @@ fn issue184(source: &str) {
     }
 }
 
+fn matches() {
+    match 1 {
+        1 => 1, // foo
+        2 => 2,
+        // bar
+        3 => 3,
+        _ => 0 // baz
+    }
+}
+
 fn arrays() {
     let x = [0,
          1,