Confusing error message when coercing an array reference to a pointer of the wrong type #138836
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.
Code
Current output
Desired output
Rationale and extra context
Current error message seems to suggest I am trying to convert a
&u8
to*const [u32; 3]
when I am actually trying to convert a&[u8; 3]
.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: