Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. fn repeat_once(should_repeat: bool) -> () {
  2. println!("A");
  3. if should_repeat {
  4. repeat_once(false);
  5. return ()
  6. }
  7. println!("B");
  8. }
  9.  
  10. fn main() {
  11. repeat_once(true)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement