diff options
| author | mo8it <mo8it@proton.me> | 2024-06-27 13:01:52 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-27 13:01:52 +0200 |
| commit | 64c2de95ca95c1d23dcb416723b33ccdfca9c956 (patch) | |
| tree | b39bba53ce6c372160f98e56e89a50311e8f8e83 /rustlings-macros | |
| parent | c1707404231e5a1d7bc837e21faf34fdc51db0bf (diff) | |
quiz3 solution
Diffstat (limited to 'rustlings-macros')
| -rw-r--r-- | rustlings-macros/info.toml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index 92c878f..bed2eaf 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -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 |
