traits4 solution

This commit is contained in:
mo8it
2024-06-27 12:23:33 +02:00
parent b4b7ae63ad
commit c0452d160b
3 changed files with 45 additions and 22 deletions
+3 -2
View File
@@ -784,9 +784,10 @@ name = "traits4"
dir = "15_traits"
hint = """
Instead of using concrete types as parameters you can use traits. Try replacing
the '??' with 'impl [what goes here?]'
`???` with `impl [what goes here?]`.
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters"""
Related section in The Book:
https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters"""
[[exercises]]
name = "traits5"