Guest User

Untitled

a guest
Dec 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. fn take_ownership(title: String){
  2. println!("Book {}", title);
  3. }
  4. fn main() {
  5. let title:String = String::from("The Title");
  6. take_ownership(title.clone());
  7. println!("Book {}", title);
  8. }
Add Comment
Please, Sign In to add comment