Inconsistent errors when passing functions as arguments. #139786
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-inconsistent
Diagnostics: Inconsistency in formatting, grammar or style between diagnostic messages.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
Instead, this happened:
The errors are inconsistent with the
fn()
getting less clear of an error than thedyn Fn
.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: