You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: Get an error about using non constant values in a constant, with a help pointer showing where to change "let" to "const", like in this example without the mut keyword:
2 | let length: usize = 2;
| ---------- help: consider using `const` instead of `let`: `const length`
Instead, this happened: I get the correct error, but it points to a wrong place to fix, off by one character:
2 | let mut length: usize = 2;
| ------------- help: consider using `const` instead of `let`: `const length`
This means auto correcting it using the rust-analyzer vscode plugin produces invalid code: