diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-22 22:50:12 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-22 22:50:12 -0700 |
| commit | cee7b4caeec85f731c0b9efd27fe159b09a785c5 (patch) | |
| tree | 0b1d42eba9d30348910c622abfa0ab48ec551f01 | |
| parent | dbd2ee015a9a98825a21ee039e32b87d536d60e6 (diff) | |
| download | rust-cee7b4caeec85f731c0b9efd27fe159b09a785c5.tar.gz rust-cee7b4caeec85f731c0b9efd27fe159b09a785c5.zip | |
Add test for issue #511. Closes #511
| -rw-r--r-- | src/test/run-pass/issue-511.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-511.rs b/src/test/run-pass/issue-511.rs new file mode 100644 index 00000000000..e895598c92b --- /dev/null +++ b/src/test/run-pass/issue-511.rs @@ -0,0 +1,10 @@ +use std; +import std::option; + +fn f<@T>(&o: mutable option::t<T>) { + assert o == option::none; +} + +fn main() { + f::<int>(option::none); +} \ No newline at end of file |
