Confusing error message when trying to pattern match on slice containing String #90121
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
A-patterns
Relating to patterns and pattern matching
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look the same as if I did:
which is:
So maybe a better output for my first example would be
The text was updated successfully, but these errors were encountered: