SHARE
TWEET

Untitled

a guest Sep 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Foo;
  2.  
  3. fn test<'a>(a: &'a mut Foo) -> &'a mut Foo {
  4.     loop {
  5.         if foo() {
  6.             return a;
  7.         }
  8.     }
  9. }
  10.  
  11. fn foo() -> bool {
  12.     rand::random::<bool>()
  13. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top