mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-06-01 03:19:47 +09:00
To understand From-based conversion, an understanding of traits is required, which we teach in a later chapter. The From trait specifically is taught in one of the conversion exercises. So, we can safely remove it here without users missing out on learning something important. A specific source of confusion for users was a warning that the conversion is useless, which appeared when using the `string_slice` function for the expression with `.into()`. closes #2190
Official Rustlings solutions
Before you finish an exercise, its solution file will only contain an empty main function.
The content of this file will be automatically replaced by the actual solution once you finish the exercise.
Note that these solutions are often only one possibility to solve an exercise.