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

7 lines
97 B
Rust

tag option[T] { none; some(T); }
fn f[T]() -> option[T] { ret none; }
fn main() { f[int](); }