aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/box-unbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/box-unbox.rs')
-rw-r--r--src/test/run-pass/box-unbox.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/box-unbox.rs b/src/test/run-pass/box-unbox.rs
index 821ac74c..9c00f55c 100644
--- a/src/test/run-pass/box-unbox.rs
+++ b/src/test/run-pass/box-unbox.rs
@@ -1,10 +1,10 @@
type box[T] = tup(@T);
-fn unbox[T](box[T] b) -> T { ret b._0; }
+fn unbox[T](box[T] b) -> T { ret *b._0; }
fn main() {
let int foo = 17;
- let box[int] bfoo = tup(foo);
+ let box[int] bfoo = tup(@foo);
log "see what's in our box";
check (unbox[int](bfoo) == foo);
}