Skip to content

Commit 2f853dd

Browse files
committed
test: Add a test case for issue #362, "ret none".
1 parent 4571172 commit 2f853dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/run-pass/ret-none.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tag option[T] { none; some(T); }
2+
3+
fn f[T]() -> option[T] { ret none; }
4+
5+
fn main() { f[int](); }
6+

0 commit comments

Comments
 (0)