Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement