Rust gives wrong help. (&mut mut Vec<T>) #85765
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
So this is the minimal code:
If I'm running
cargo check
on this, than I'm getting the following:So the interesting part is this one:
If I try this:
Than I'm getting this when running
cargo check
:Well I expected that
rust
would say, that the given type ofrofl
is wrong or doesn't fit with the value which is gonna be assigned. Something like this:Meta
rustc --version --verbose
:Backtrace
It didn't even build, so I think it's fine if I don't fill this part.
The text was updated successfully, but these errors were encountered: