aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/box.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-02 15:02:17 -0800
committerGraydon Hoare <[email protected]>2010-12-02 15:02:17 -0800
commitdf5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088 (patch)
tree233e41a116b5726a54296d03a5bfa7cf13bcd16e /src/test/run-pass/box.rs
parentAdd test for non-exhaustive match failure. (diff)
downloadrust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.tar.xz
rust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.zip
Add minimal test for box/deref.
Diffstat (limited to 'src/test/run-pass/box.rs')
-rw-r--r--src/test/run-pass/box.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/box.rs b/src/test/run-pass/box.rs
new file mode 100644
index 00000000..ffcd9ec5
--- /dev/null
+++ b/src/test/run-pass/box.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let @int x = @10;
+ check ((*x) == 10);
+}