]> git.lizzy.rs Git - rust.git/commitdiff
test: Add an assertion to the #16745 testcase
authorRicho Healey <richo@psych0tik.net>
Sun, 19 Apr 2015 07:25:13 +0000 (00:25 -0700)
committerRicho Healey <richo@psych0tik.net>
Sun, 19 Apr 2015 07:25:13 +0000 (00:25 -0700)
src/test/run-pass/issue-16745.rs

index 8cffaf27ce472b2fca43a807e455501a8b1c4a07..79fe0b0177a43446925714332c181d43c1299b4c 100644 (file)
 
 fn main() {
     const X: u8 = 0;
-    match 0u8 {
-        X => { },
-        b'\t' => { },
-        1u8 => { },
-        _ => { },
-    }
+    let out: u8 = match 0u8 {
+        X => 99,
+        b'\t' => 1,
+        1u8 => 2,
+        _ => 3,
+    };
+    assert_eq!(out, 99);
 }