mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
22 lines
417 B
Rust
22 lines
417 B
Rust
#![warn(clippy::upper_case_acronyms)]
|
|
|
|
struct HTTPResponse; // not linted by default, but with cfg option
|
|
|
|
struct CString; // not linted
|
|
|
|
enum Flags {
|
|
NS, // not linted
|
|
CWR,
|
|
ECE,
|
|
URG,
|
|
ACK,
|
|
PSH,
|
|
RST,
|
|
SYN,
|
|
FIN,
|
|
}
|
|
|
|
struct GCCLLVMSomething; // linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
|
// `GccLlvmSomething`
|
|
|
|
fn main() {}
|