Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Foo {
- Bar,
- Baz,
- }
- fn main() {
- let f = Foo::Bar;
- match f {
- Foo::Bar => {
- println!("look ma, no comma!");
- }
- Foo::Baz => {
- println!("I'm comma-free!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement