UX Improvement: Ensures clause requires type annotation #3304
Labels
[C] Feature / Enhancement
A new feature request or enhancement to an existing feature.
Milestone
Requested feature: Improve UX for ensure clauses.
Use case: Since #3207, ensures are now represented as closures that receive a reference of the return value. However, when using this annotation, we often get an error that requires the type to be specified.
Link to relevant documentation (Rust reference, Nomicon, RFC):
Test case:
I get the following compilation error:
The text was updated successfully, but these errors were encountered: