diff options
Diffstat (limited to 'src/test/run-pass/expr-match-box.rs')
| -rw-r--r-- | src/test/run-pass/expr-match-box.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/expr-match-box.rs b/src/test/run-pass/expr-match-box.rs index 84a78637187..6f638758ed8 100644 --- a/src/test/run-pass/expr-match-box.rs +++ b/src/test/run-pass/expr-match-box.rs @@ -15,13 +15,13 @@ // Tests for match as expressions resulting in boxed types fn test_box() { - let res = match true { true => { @100 } _ => fail!("wat") }; + let res = match true { true => { @100 } _ => fail2!("wat") }; assert_eq!(*res, 100); } fn test_str() { let res = match true { true => { ~"happy" }, - _ => fail!("not happy at all") }; + _ => fail2!("not happy at all") }; assert_eq!(res, ~"happy"); } |
