SHARE
TWEET

Untitled

a guest Oct 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Foo {
  2.     a: u32,
  3.     b: bool,
  4. }
  5.  
  6. enum Animal {
  7.     Dog,
  8.     Cat,
  9.     Mouse,
  10. }
  11.  
  12.  
  13. fn main() {
  14.     let x = Foo {
  15.         a: 5,
  16.         b: false,
  17.     };
  18.     let y = Animal::Dog;
  19. }
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