Skip to content

Instantly share code, notes, and snippets.

@pythonesque
Created October 31, 2013 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pythonesque/7254184 to your computer and use it in GitHub Desktop.
Save pythonesque/7254184 to your computer and use it in GitHub Desktop.
struct Foo(uint);
fn main()
{
enum Bar { Baz(Foo) };
let x = Baz(Foo(4));
fn foo(_bar : uint) -> Foo { Foo(3) }
match x {
Baz(foo(x)) => println!("{:?}", x)
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment