2 ms·
> a huge amount of example/tutorial code that isn't all that old but will fail to compile on the latest rustc [citation needed] Rust has maintained backward c
by stouset 3y ago
> a huge amount of example/tutorial code that isn't all that old but will fail to compile on the latest rustc
[citation needed]
Rust has maintained backward compatibility to a level even beyond what golang has done. Code written for Rust 1.0 will compile on latest Rust, minus a very scant few edge cases where it should never have compiled in the first place except for a compiler bug.
- estebank 3y agoYou could conceivably encounter cases where cargo init sets your project to 2021 edition and you're following a 2015 tutorial and encounter compilation errors due to edition differences, but when these happen the error should have enough information to make it clear this is the case.