SHARE
TWEET

Untitled

a guest Aug 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn identity<T>(x: T) -> T {
  2.     println!("{:p}", &x);
  3.     x
  4. }
  5.  
  6. fn main() {
  7.     let x = 10;
  8.     println!("{:p}", &identity(x));
  9. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top