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

8 lines
107 B
Rust
Raw Normal View History

enum option<T> { none; some(T); }
fn f<T: copy>() -> option<T> { ret none; }
fn main() { f::<int>(); }