This version of the text assumes you’re using Rust 1.62.0 (released 2022-06-30) or later with edition="2021"
in Cargo.toml of all projects to use Rust 2021 Edition idioms. See “Installation” on page 1 for instructions on installing or updating Rust, and see Appendix E for information on editions.
The 2021 Edition of the Rust language includes a number of improvements that make Rust more ergonomic and correct some inconsistencies. On top of a general update to reflect these improvements, this rendition of the book has a number of improvements to address specific feedback:
move
keyword, and the Fn
traits.