non_camel_case_types does not trigger for screaming single-word #116336
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-non_camel_case_types
Lint: non_camel_case_types
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
FOO
,BAR
, andBAZ
should all trigger thenon_camel_case_types
lint (at least assuming it follows RFC430), and so the code should not compile.Instead, this happened: The code compiled with no warnings. All three cases start triggering the lint if something like
_X
is added to them.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: