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

Listing-20-34 uses the newly reserved "gen" keyword #4237

Open
matej-almasi opened this issue Feb 23, 2025 · 0 comments
Open

Listing-20-34 uses the newly reserved "gen" keyword #4237

matej-almasi opened this issue Feb 23, 2025 · 0 comments

Comments

@matej-almasi
Copy link

URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/nightly/book/ch20-05-macros.html#how-to-write-a-custom-derive-macro

Description of the problem:
Listing 20-34 uses "gen" as variable identifier, but "gen" is a keyword in 2024 edition.

Suggested fix:
Replace "gen" with another suitable identifier.

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

No branches or pull requests

1 participant