Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- enum ABC {
- A(u64),
- B,
- C,
- };
- let ins = ABC::A(5);
- match ins {
- ABC::A(_) => println!("A"),
- ABC::B => println!("B"),
- ABC::C => println!("C"),
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement