Guest User

Untitled

a guest
May 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. fn add_apocalypse_date(str: &mut str){
  2. // ERROR
  3. add_another_apocalypse_date(&mut str);
  4. }
  5.  
  6. fn add_another_apocalypse_date(_str: &mut str) {}
  7.  
  8. fn main() {
  9. let mut book_title = String::from("Apocalypse");
  10.  
  11. add_apocalypse_date(&mut book_title);
  12. }
Add Comment
Please, Sign In to add comment