-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code
const 🦀: u32 = 5;
mod t {
static 🦀: u32 = 5;
}
Current output
error: Ferris cannot be used as an identifier
--> <source>:1:7
|
1 | const 🦀: u32 = 5;
| ^^ help: try using their name instead: `ferris`
...
4 | static 🦀: u32 = 5;
| ^^
Desired output
error: Ferris cannot be used as an identifier
--> <source>:1:7
|
1 | const 🦀: u32 = 5;
| ^^ help: try using their name instead: `FERRIS`
...
4 | static 🦀: u32 = 5;
| ^^
Rationale and extra context
No response
Other cases
No response
Rust Version
rustc 1.76.0-nightly (eeff92ad3 2023-12-13)
binary: rustc
commit-hash: eeff92ad32c2627876112ccfe812e19d38494087
commit-date: 2023-12-13
host: x86_64-unknown-linux-gnu
release: 1.76.0-nightly
LLVM version: 17.0.5
Anything else?
No response
Noratrieb, clubby789, wackbyte, oli-obk, JarvisCraft and 4 more
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.