diff options
| author | Graydon Hoare <[email protected]> | 2010-07-02 12:55:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-02 12:55:12 -0700 |
| commit | 4d00333b1ef41b5a2723b5af6352f61701976d99 (patch) | |
| tree | 928ab0fb7aff62ace7527f8082faf79c40078583 /src/test | |
| parent | Change make rules around running tests to not produce an .out file if test-ru... (diff) | |
| download | rust-4d00333b1ef41b5a2723b5af6352f61701976d99.tar.xz rust-4d00333b1ef41b5a2723b5af6352f61701976d99.zip | |
New test of explicit deref operator.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/deref.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/deref.rs b/src/test/run-pass/deref.rs new file mode 100644 index 00000000..36a28ba5 --- /dev/null +++ b/src/test/run-pass/deref.rs @@ -0,0 +1,4 @@ +fn main() { + let @int x = @10; + let int y = *x; +}
\ No newline at end of file |