SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.   let x1 = retorna_string();
  3.   let x2 = x1.clone();
  4.   println!("x1: {}, x2: {}", x1, x2);
  5. }
  6.  
  7. fn retorna_string() -> String {
  8.   return String::from("olá");
  9. }
  10.  
  11. */
  12.   x1: olá, x2: olá
  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
 
Top