Kids Through world-leading AI and a global team of digital risk experts we deliver complete Trust and Safety for social brands, digital platforms, advertisers and kids from bad actors that exploit, extort, distress, offend and misinform.
| let your_book = my_book; | --------- value moved here 4 | println!("Your book: {:?}", your_book); 5 | println!("My book: {:?}", my_book); // !!ERROR - This won't work. | ^^^^^^^ value used here after move | Ownership
5 | my_borrow = &my_book; | ^^^^^^^ borrowed value does not live long enough 6 | } | - `my_book` dropped here while still borrowed 7 | println!("Borrowed book: {:?}", my_borrow); 8 | } | - borrowed value needs to live until here Borrowing