test: Add a test case for issue #362, "ret none".
This commit is contained in:
parent
4571172c03
commit
2f853ddb8d
1 changed files with 6 additions and 0 deletions
6
src/test/run-pass/ret-none.rs
Normal file
6
src/test/run-pass/ret-none.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
tag option[T] { none; some(T); }
|
||||
|
||||
fn f[T]() -> option[T] { ret none; }
|
||||
|
||||
fn main() { f[int](); }
|
||||
|
Loading…
Add table
Reference in a new issue