rust/tests/ui/upper_case_acronyms.rs

24 lines
392 B
Rust
Raw Normal View History

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