147a2d655f
This reverts commit d08b443fff
.
11 lines
202 B
Rust
11 lines
202 B
Rust
type box[T] = tup(@T);
|
|
|
|
fn unbox[T](&box[T] b) -> T { ret *b._0; }
|
|
|
|
fn main() {
|
|
let int foo = 17;
|
|
let box[int] bfoo = tup(@foo);
|
|
log "see what's in our box";
|
|
assert (unbox[int](bfoo) == foo);
|
|
}
|