1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-11-29 22:47:43 +02:00

quiz3 solution

This commit is contained in:
mo8it
2024-06-27 13:01:52 +02:00
parent c170740423
commit 64c2de95ca
3 changed files with 87 additions and 13 deletions

View File

@@ -805,10 +805,16 @@ https://doc.rust-lang.org/book/ch10-02-traits.html#specifying-multiple-trait-bou
name = "quiz3"
dir = "quizzes"
hint = """
To find the best solution to this challenge you're going to need to think back
to your knowledge of traits, specifically 'Trait Bound Syntax'
To find the best solution to this challenge, you need to recall your knowledge
of traits, specifically "Trait Bound Syntax":
https://doc.rust-lang.org/book/ch10-02-traits.html#trait-bound-syntax
You may also need this: `use std::fmt::Display;`."""
Here is how to specify a trait bound for an implementation block:
`impl<T: Trait1 + Trait2 + …> for Foo<T> { … }`
You may need this:
`use std::fmt::Display;`
"""
# LIFETIMES