Point at problematic argument on mismatched Fn
argument count
#48099
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
(After #48047's ICE fix) When a function or closure from another crate is passed as an argument and it doesn't match the expected argument count, the error points only at the method that expected the closure:
In the case where the function or closure is local, the span for it is highlighted:
It would be good for consistency to point at the external's function/closure span use location, as well as printing out the signature of the method:
The text was updated successfully, but these errors were encountered: