rust/tests/ui/upper_case_acronyms.rs

22 lines
333 B
Rust
Raw Normal View History

2020-12-19 13:50:45 +00:00
#![warn(clippy::upper_case_acronyms)]
struct HTTPResponse; // linted
struct CString; // not linted
enum Flags {
NS, // linted
CWR,
ECE,
URG,
ACK,
PSH,
RST,
SYN,
FIN,
}
struct GCCLLVMSomething; // linted, beware that lint suggests `GccllvmSomething` instead of `GccLlvmSomething`
fn main() {}