SHARE
TWEET

Untitled

a guest May 25th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let a = 42;
  3.     let b = &a;
  4.     foo(b);
  5.     let c = a;
  6.     foo(b);
  7.     println!("a: {}, c: {}", a, c);
  8. }
  9.  
  10. fn foo(a : &i32) {
  11.    
  12. }
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