rust/src/test/run-pass/ret-none.rs
Marijn Haverbeke 60ae1590af Switch to new param kind bound syntax
And remove support for the old syntax
2012-01-05 15:50:02 +01:00

8 lines
106 B
Rust

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