Use infallible conversion to teach From trait

This commit is contained in:
Remo Senekowitsch
2026-05-15 09:18:40 +02:00
parent 9b50da484f
commit db5ad7f42f
4 changed files with 60 additions and 217 deletions
+3 -1
View File
@@ -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"