Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created June 6, 2013 00:28
Show Gist options
  • Save bstrie/5718429 to your computer and use it in GitHub Desktop.
Save bstrie/5718429 to your computer and use it in GitHub Desktop.
fn main() {
let x = 2;
let y = "nope";
match y {
_ if x == 2 => println("is two"),
_ => println("not two")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment