hint for global use of let instead of const or static #83265
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.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ffbf1151b3ceaee128b58616565c8774
The current output is:
Ideally the output should look like:
Since this is the syntax for writing local variables, I often try to use this same syntax at global scope and get an unhelpful error message.
The text was updated successfully, but these errors were encountered: