Guest User

Untitled

a guest
Jan 11th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment