Unhelpful parser error trying to get an associated item from an array type the intuitive-but-wrong way #42187
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
WG-diagnostics
Working group: Diagnostics
Example asked about on IRC:
Simple repro:
Current error:
The direct solution (
<[f32; 2]>::deserialize
) is non-obvious and hard to search for, so the compiler could be particularly helpful here.The text was updated successfully, but these errors were encountered: