SHARE
TWEET

Untitled

a guest Aug 17th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let mut b: [i8; 5] = [1, 2, 3, 4, 5];
  3.     let c = &mut b[..];
  4.     c[0] = 4;
  5.     println!("{:?}", b);
  6.     println!("{:?}", c);
  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
 
Top