book icon indicating copy to clipboard operation
book copied to clipboard

Fix incorrect source in 16.1

Open boojongmin opened this issue 1 year ago • 1 comments

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.

image

This pull request modifies the example source to produce compilation errors consistent with the book.

image

(This image captures that part.)

image

boojongmin avatar Dec 02 '23 07:12 boojongmin

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).

anemochore avatar Dec 26 '23 07:12 anemochore

close. this was an invalid pull request.

boojongmin avatar Dec 30 '23 23:12 boojongmin