SyntaxFix
Write A Post
Hire A Developer
Questions
Because you did not write a comparison operator for your struct. The compiler does not generate it for you, so if you want comparison, you have to write it yourself.