]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/upper_case_acronyms_aggressive/upper_case_acronyms.rs
upper_case_acronyms: don't warn on public items
[rust.git] / tests / ui-toml / upper_case_acronyms_aggressive / upper_case_acronyms.rs
1 #![warn(clippy::upper_case_acronyms)]
2
3 struct HTTPResponse; // not linted by default, but with cfg option
4
5 struct CString; // not linted
6
7 enum Flags {
8     NS, // not linted
9     CWR,
10     ECE,
11     URG,
12     ACK,
13     PSH,
14     RST,
15     SYN,
16     FIN,
17 }
18
19 struct GCCLLVMSomething; // linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
20                          // `GccLlvmSomething`
21
22 // don't warn on public items
23 pub struct MIXEDCapital;
24
25 pub struct FULLCAPITAL;
26
27 fn main() {}