[ER] Help for boxed array => slice/array #83410
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is wrong code:
rustc 1.53.0 nightly gives the error messages:
In all the wrong cases rustc could give as help the suggestion to use the syntax I've used in the correct cases (C4, C10, C12 and C18). (C11 and C16 already give the help).
Additionally rustc could warn in the cases of useless mut usage (C05 and C13) (See issue #83409 ).
The text was updated successfully, but these errors were encountered: