SHARE
TWEET

Untitled

a guest Apr 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn print_func(name: String) {
  2.     println!("print inside the function {:?}", name);
  3. }
  4.  
  5. fn main() {
  6.     let a = String::from("raja");
  7.     print_func(a.clone());
  8.     println!("print inside main function {:?}", a);
  9. }
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