SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Foo {
  2.     Bar,
  3.     Baz,
  4. }
  5.  
  6. fn main() {
  7.     let f = Foo::Bar;
  8.    
  9.     match f {
  10.         Foo::Bar => {
  11.             println!("look ma, no comma!");
  12.         }
  13.         Foo::Baz => {
  14.             println!("I'm comma-free!");
  15.         }
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top