about summary refs log tree commit diff
path: root/src/test/run-pass/expr-block-generic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-block-generic.rs')
-rw-r--r--src/test/run-pass/expr-block-generic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/expr-block-generic.rs b/src/test/run-pass/expr-block-generic.rs
index 63187bee76f..c582a30fa25 100644
--- a/src/test/run-pass/expr-block-generic.rs
+++ b/src/test/run-pass/expr-block-generic.rs
@@ -17,7 +17,7 @@ type compare<T> = @fn(T, T) -> bool;
 
 fn test_generic<T:Copy>(expected: T, eq: compare<T>) {
     let actual: T = { expected };
-    assert (eq(expected, actual));
+    fail_unless!((eq(expected, actual)));
 }
 
 fn test_bool() {