diff options
| author | Graydon Hoare <[email protected]> | 2010-12-02 15:02:17 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-02 15:02:17 -0800 |
| commit | df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088 (patch) | |
| tree | 233e41a116b5726a54296d03a5bfa7cf13bcd16e /src/test | |
| parent | Add test for non-exhaustive match failure. (diff) | |
| download | rust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.tar.xz rust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.zip | |
Add minimal test for box/deref.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/box.rs | 4 |
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); +} |