From cee7b4caeec85f731c0b9efd27fe159b09a785c5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 22 Sep 2011 22:50:12 -0700 Subject: [PATCH] Add test for issue #511. Closes #511 --- src/test/run-pass/issue-511.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/test/run-pass/issue-511.rs 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) { + assert o == option::none; +} + +fn main() { + f::(option::none); +} \ No newline at end of file