mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
- Replace From<&str> trait with TryFrom<&str> for proper error handling - Add ParsePersonError enum with BadLen, NoName, and ParseInt variants - Update all tests to expect appropriate errors instead of default Person values - Maintain same error handling pattern as from_str exercise - Add required imports for TryFrom and TryInto traits
Rustlings 🦀
Small exercises to get you used to reading and writing Rust code - Recommended in parallel to reading the official Rust book 📚️
Visit the website for a demo, info about setup and more:
➡️ rustlings.rust-lang.org ⬅️
Languages
Rust
97.7%
HTML
1.9%
CSS
0.3%