Error about number of arguments, when number is correct but type is wrong #46295
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
WG-diagnostics
Working group: Diagnostics
I'm struggling with types in async code, and came across an error that was very misleading. I tried this code:
I expected to see an error that my closure on the line annotated with "XXX" has the wrong argument type.
Instead, this happened:
Meta
/cc @Mark-Simulacrum
The text was updated successfully, but these errors were encountered: