blob: c28cb520be8bc6ca6c400bdaaf92f670575671c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std;
import std::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));
}
|