Guest User

Untitled

a guest
Jul 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. enum Enum1 {
  2. Case1,
  3. Case2,
  4. }
  5.  
  6. use self::Enum1::*;
  7.  
  8. fn main() {
  9. let kek = Enum1::Case1;
  10.  
  11. match kek {
  12. Case0 => println!("Case 0"),
  13. Case1 => println!("Case 1"),
  14. Case2 => println!("Case 2"),
  15. }
  16. }
Add Comment
Please, Sign In to add comment