diff options
Diffstat (limited to 'src/liballoc/boxed.rs')
| -rw-r--r-- | src/liballoc/boxed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 168d0daeb38..09404af7027 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -148,11 +148,11 @@ mod test { match a.downcast::<uint>() { Ok(a) => { assert!(a == box 8u); } - Err(..) => fail!() + Err(..) => panic!() } match b.downcast::<Test>() { Ok(a) => { assert!(a == box Test); } - Err(..) => fail!() + Err(..) => panic!() } let a = box 8u as Box<Any>; |
