mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 01:03:31 +02:00
Use infallible conversion to teach From trait
This commit is contained in:
@@ -1171,7 +1171,9 @@ Use the `as` operator to cast one of the operands in the last line of the
|
||||
name = "conversions2"
|
||||
dir = "23_conversions"
|
||||
hint = """
|
||||
Follow the steps provided right before the `From` implementation."""
|
||||
Implement From<FairyCredit> for GnomeCoin. Check the documentation of `From` to
|
||||
learn about its required items:
|
||||
https://doc.rust-lang.org/std/convert/trait.From.html"""
|
||||
|
||||
[[exercises]]
|
||||
name = "conversions3"
|
||||
|
||||
Reference in New Issue
Block a user