SHARE
TWEET

Untitled

a guest Jun 25th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(in_band_lifetimes)]
  2. struct Foo<'tcx, T>(&'tcx T);
  3. impl<T> Foo<'tcx, T> {
  4.     fn foo(self) -> &'tcx T {
  5.         fn bar<T>(x: &'tcx T) -> &'tcx T { x }
  6.         bar(self.0)
  7.     }
  8. }
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