Guest User

Untitled

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