Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect source in 16.05 #3792

Closed
wants to merge 1 commit into from
Closed

Fix incorrect source in 16.05 #3792

wants to merge 1 commit into from

Conversation

boojongmin
Copy link

@boojongmin boojongmin commented Dec 2, 2023

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

In the book, I should get a compilation error, but the source now passes compilation.

modifies the source as in the book.
@anemochore
Copy link

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

@boojongmin boojongmin changed the title Fix incorrect source in 16.1 Fix incorrect source in 16.5 Dec 30, 2023
@boojongmin boojongmin changed the title Fix incorrect source in 16.5 Fix incorrect source in 16.05 Dec 30, 2023
@boojongmin
Copy link
Author

close. this was an invalid pull request.

@boojongmin boojongmin closed this Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants