SHARE
TWEET

Untitled

a guest Jul 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Foo;
  2.  
  3. // works
  4. fn one<'a>() -> &'a Foo {
  5.     let _reference : &'a Foo = &Foo;//is the lifetime of this borrow 'static or 'a ?
  6.     _reference
  7. }
  8.  
  9. fn main() {
  10.     one();
  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