SHARE
TWEET

Untitled

a guest Jun 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Test {
  2.     One,
  3.     Two,
  4.     Four,
  5. }
  6.  
  7. fn main() {
  8.    
  9. }
  10.  
  11. fn test(input: Test) {
  12.     match input {
  13.         Test::One => println!("huh: {}", input as u32),
  14.         _ => (),
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top