improve err msg for "cannot coerce non-statically resolved bare fn" #15273
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
play-pen
prints
We can do better here, e.g. by suggesting to the user that they make the closure construction explicit via eta-expansion, i.e. writing
callit(||f())
(orcallit(|x|g(x))
, etc).The text was updated successfully, but these errors were encountered: