book
book copied to clipboard
Fix incorrect source in 16.1
10 | drop(v); // oh no!
| ^ value used here after move
In the book, I should get a compilation error, but the source now passes compilation.
This pull request modifies the example source to produce compilation errors consistent with the book.
(This image captures that part.)
Which Rust version are you using? What is your OS and IDE? Listing 16-3 won't compile on Rust 1.74.1 (current stable).
close. this was an invalid pull request.