blob: 62807251bd16044762029d1d03b7482fe4afd66d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std;
import std.Box;
fn main() {
auto x = @3;
auto 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));
}
|