about summary refs log tree commit diff
path: root/src/test/run-pass/expr-match-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-match-struct.rs')
-rw-r--r--src/test/run-pass/expr-match-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/expr-match-struct.rs b/src/test/run-pass/expr-match-struct.rs
index 3d01c6653a7..21b0c28495e 100644
--- a/src/test/run-pass/expr-match-struct.rs
+++ b/src/test/run-pass/expr-match-struct.rs
@@ -16,7 +16,7 @@
 struct R { i: int }
 
 fn test_rec() {
-    let rs = match true { true => R {i: 100}, _ => fail!() };
+    let rs = match true { true => R {i: 100}, _ => panic!() };
     assert_eq!(rs.i, 100);
 }