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

8 lines
110 B
Rust
Raw Normal View History

enum option<T> { none, some(T), }
2012-08-01 19:30:05 -05:00
fn f<T: copy>() -> option<T> { return none; }
fn main() { f::<int>(); }