Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. struct Foo;
  2.  
  3. fn one<'a>() -> () {
  4. let _reference = &Foo;
  5. }
  6.  
  7. // syntactic sugar for
  8.  
  9. fn two<'a>() -> () {
  10. let temp = Foo;
  11. let _reference_to_temp = &temp;
  12. }
  13.  
  14. fn main() {
  15. one();
  16. two();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement