From 2f853ddb8ddccd9ba76ab2b944b55163cb76f501 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 8 Jun 2011 12:52:36 -0700 Subject: [PATCH] test: Add a test case for issue #362, "ret none". --- src/test/run-pass/ret-none.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/test/run-pass/ret-none.rs diff --git a/src/test/run-pass/ret-none.rs b/src/test/run-pass/ret-none.rs new file mode 100644 index 00000000000..cc9f3020f4d --- /dev/null +++ b/src/test/run-pass/ret-none.rs @@ -0,0 +1,6 @@ +tag option[T] { none; some(T); } + +fn f[T]() -> option[T] { ret none; } + +fn main() { f[int](); } +