Complete Online Safety for Social Brands, Digital Platforms, Advertisers and 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.
error[E0382]: use of moved value: `my_book` --> src/main.rs:5:31 | 3 | 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
error[E0597]: `my_book` does not live long enough --> src/main.rs:5:22 | 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