daily pastebin goal
84%
SHARE
TWEET

Untitled

a guest Jan 11th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Foo;
  2. impl std::ops::Deref for Foo {
  3.     type Target = Foo;
  4.     fn deref(&self) -> &Foo {
  5.         &self
  6.     }
  7. }
  8. fn main() {
  9.     let foo = &Foo;
  10.     let bar:&Foo = &foo;
  11. }
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