Skip to content

Instantly share code, notes, and snippets.

@jld
Forked from nikomatsakis/gist:5006624
Created February 21, 2013 17:50
Show Gist options
  • Save jld/5006665 to your computer and use it in GitHub Desktop.
Save jld/5006665 to your computer and use it in GitHub Desktop.
enum Option<T> { Some(T), None }
fn gen_func<A>(...) {
let o: Option<uint> = ...;
match o { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment