Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
110
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.  
  3. fn test<'a>(a: &'a mut Foo) -> &'a mut Foo {
  4. loop {
  5. if foo() {
  6. return a;
  7. }
  8. }
  9. }
  10.  
  11.  
  12.  
  13. fn foo() -> bool {
  14. rand::random::<bool>()
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement