'allocator_api' error has a higher priority than 'unexpected type argument' #80237
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
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:
This was very confusing to me, took me a while to figure out what the real error was.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: