SHARE
TWEET

Untitled

a guest Apr 21st, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn foo() -> String {
  2.     let mut s = "hello".to_string();
  3.     for i in &[1, 2, 3] {
  4.         if *i == 5 {
  5.             return s;
  6.         }
  7.     }
  8.    
  9.     s += " world";
  10.     return s;
  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