test: Add a test case for issue #362, "ret none".
This commit is contained in:
parent
4571172c03
commit
2f853ddb8d
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…
Reference in New Issue
Block a user