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

8 lines
107 B
Rust

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