1 2 3 4 5 6 7 8 9 10 11 12 13 14
import core::*; use std; import box; #[test] fn test() { let x = @3; let y = @3; assert (box::ptr_eq::<int>(x, x)); assert (box::ptr_eq::<int>(y, y)); assert (!box::ptr_eq::<int>(x, y)); assert (!box::ptr_eq::<int>(y, x)); }