Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let a = 4;
- match a % 2 {
- 0 => match a {
- 0 => println!("{:?} is zero", a),
- _ => println!("{:?} is even", a),
- },
- _ => unimplemented!(),
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement