Unhelpful error for different impl method signature vs trait #3006
Labels
A-type-system
Area: Type system
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone
error: method
new_objecthas an incompatible type: () vs enum core::result::result
It took me a while to figure out that this was talking about the expected return type from the trait versus what the impl method was declaring. We should work the words trait and impl into that error somehow.
The text was updated successfully, but these errors were encountered: