Don't point to Fn::call
when the arguments passed to a closure are incorrect
#98308
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
P-medium
Medium priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is dependent on whether you have the
rust-src
component installed. With it installed:without it (e.g. on playground), the same except the note looks very strange because it doesn't actually point anywhere:
Ideally the output should look like:
The text was updated successfully, but these errors were encountered: