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

8 lines
110 B
Rust

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