You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Make sure to change the grade here after you finish the exercise.
Hint goes as:
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 - you may also need this: `use std::fmt::Display;`.
I do not remember the term Trait Bound Syntax being mentioned before. Also, there was no opportunity to try use std::fmt::Display;.
This makes the quiz very complicated for me because I am unable to associate the hint with the information from the rust book or rust by example.
It would be great if the text contained more links to examples.
What actually helped me to finish the exercise was
First make the change of
And then the compiler complained that the grade expected f32 but found &str. Which ultimately lead me to use what I learned in generics2 -> pub struct ReportCard<T> and after implementing all this the compiler suggested using std::fmt::Display;.
I'd probably move the todo directly above the line which is supposed to be changed
Hey! So in my opinion, I think the it is a good practice to read the README.md files as you progress. I understand that it takes you out of the immersion and the flow.
As for the std::fmt::Display, yes there is no explicit exercise that shows how to use builtin traits. So someone going through the exercise can go here, it is linked in the README file.
I agree that this quiz seems to need a bit of improvement. I read the Rust Book up through chapter 15 before starting the rustlings and breezed through almost everything until quiz3, where I was completely stumped until I googled solutions. Why even make the student change the second test from 2.1 to "A+"? That seems to add a whole separate layer of complication to a quiz that already asks you to make abnormally large leaps in logic and knowledge compared to previous problems and quizzes.
Hi, I am completely new to Rust and trying these exercises. I am familiar with Python and more or less TypeScript.
Up until Generics and Traits everything was well explained and hints provided enough information on what to read.
However, the traits section does not provide much information at all.
The description and hints in quiz3 assume a lot of knowledge which wasn't previously mentioned.
In the description it says
rustlings/exercises/quiz3.rs
Lines 12 to 13 in 9acefe8
but the todo note is
rustlings/exercises/quiz3.rs
Line 51 in 9acefe8
Hint goes as:
I do not remember the term
Trait Bound Syntax
being mentioned before. Also, there was no opportunity to tryuse std::fmt::Display;
.This makes the quiz very complicated for me because I am unable to associate the hint with the information from the rust book or rust by example.
It would be great if the text contained more links to examples.
What actually helped me to finish the exercise was
First make the change of
rustlings/exercises/quiz3.rs
Line 53 in 9acefe8
A+
And then the compiler complained that the grade expected
f32
but found&str
. Which ultimately lead me to use what I learned ingenerics2
->pub struct ReportCard<T>
and after implementing all this the compiler suggested usingstd::fmt::Display;
.rustlings/exercises/quiz3.rs
Lines 50 to 55 in 9acefe8
The text was updated successfully, but these errors were encountered: