Skip to content

Incomplete Solution for quiz3 #2241

@SAVYAGOEL

Description

@SAVYAGOEL

In quiz3 solution, I think it is incomplete, since ideally we shouldn't even allow to create a ReportCard with the grade attribute having value of type other than those that implement the Display trait, so in my opinion in the complete solution we should also put a Trait Bound in the definition of the struct ReportCard and modify it to struct ReportCard<T: Display>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions