8 lines
139 B
Rust
8 lines
139 B
Rust
fn box[T](&tup(T,T,T) x) -> @tup(T,T,T) {
|
|
ret @x;
|
|
}
|
|
|
|
fn main() {
|
|
let @tup(int,int,int) x = box[int](tup(1,2,3));
|
|
check (x._1 == 2);
|
|
} |