a guest Sep 18th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main()
  2. {
  3.     let mut vec = vec![1, 2, 3];
  4.     let i = &vec[0];
  5.     vec.clear();
  6.     println!("{:?}", i); // What is this supposed to print?
  7. }
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