SHARE
TWEET

Untitled

a guest Jun 25th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[derive(Debug)]
  2. struct Thing {
  3.     a: u64,
  4.     b: u64,
  5. }
  6.  
  7. fn main() {
  8.     let thing1 = Thing{a: 1, b: 2};
  9.     let thing2 = Thing{a: 1, .. thing1};
  10.     println!("{:?}, {:?}",  thing1, thing2);
  11. }
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