SHARE
TWEET

Untitled

a guest May 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[derive(Debug)]
  2. struct I(u64);
  3.  
  4. fn main() {
  5.     let mut v = vec![I(1),I(2),I(3)];
  6.     for &mut I(ref mut i) in &mut v {
  7.         *i = *i * *i;
  8.     }
  9.     println!("{:?}", &v[2]);
  10. }
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