about summary refs log tree commit diff
path: root/src/libcore/float.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/float.rs')
-rw-r--r--src/libcore/float.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/float.rs b/src/libcore/float.rs
index 7ff8599679c..b90edec4d96 100644
--- a/src/libcore/float.rs
+++ b/src/libcore/float.rs
@@ -516,7 +516,7 @@ pub fn test_from_str() {
    // note: NaN != NaN, hence this slightly complex test
    match from_str(~"NaN") {
        Some(f) => assert is_NaN(f),
-       None => fail
+       None => die!()
    }
 
    assert from_str(~"").is_none();