Guest User

Untitled

a guest
Nov 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. fn main() {
  2. let mut x = 4;
  3. let y = &mut x;
  4. triple(y);
  5. println!("{}", x);
  6. }
  7.  
  8. fn triple(x: &mut i32) {
  9. *x *= 3;
  10. }
Add Comment
Please, Sign In to add comment