daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct MyType;
  2.  
  3. fn f(_: &MyType) {}
  4. fn e(_: &mut MyType) {}
  5.  
  6. fn main() {
  7.     let mut a = MyType{};
  8.     let b = &mut a;
  9.     let c = &a;
  10.     e(b);
  11.     f(c);
  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