Misleading cannot infer type for type parameter
#93198
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
(playground link)
... the current output is:
This error message is a bit misleading in that it refers not to
K
fromtrait Store<K, V>
, butK
from theimpl<K> Store<...>
(the compiler is not sure which kind ofHashMap<K, String>
user wants).Maybe we could print something like this?
The text was updated successfully, but these errors were encountered: