traits5 solution

This commit is contained in:
mo8it
2024-06-27 12:29:25 +02:00
parent db4d649e55
commit 45cfe86fb0
3 changed files with 59 additions and 15 deletions
+3 -3
View File
@@ -792,12 +792,12 @@ https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters"""
[[exercises]]
name = "traits5"
dir = "15_traits"
test = false
hint = """
To ensure a parameter implements multiple traits use the '+ syntax'. Try
replacing the '??' with 'impl [what goes here?] + [what goes here?]'.
replacing `???` with 'impl [what goes here?] + [what goes here?]'.
See the documentation at: https://doc.rust-lang.org/book/ch10-02-traits.html#specifying-multiple-trait-bounds-with-the--syntax"""
Related section in The Book:
https://doc.rust-lang.org/book/ch10-02-traits.html#specifying-multiple-trait-bounds-with-the--syntax"""
# QUIZ 3