Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Day {
- Sunday,
- Monday,
- Tuesday,
- Wednesday,
- Thursday,
- Friday,
- Saturday,
- }
- fn main() {
- let day = Day::Sunday;
- match day {
- Day::Saturday | Day::Sunday => {
- println!("Relax yourself");
- }
- _ => {
- println!("Work hardly")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement