2020-12-19 13:50:45 +00:00
|
|
|
#![warn(clippy::upper_case_acronyms)]
|
|
|
|
|
2021-02-24 22:41:32 +00:00
|
|
|
struct HTTPResponse; // not linted by default, but with cfg option
|
2020-12-19 13:50:45 +00:00
|
|
|
|
|
|
|
struct CString; // not linted
|
|
|
|
|
|
|
|
enum Flags {
|
2021-02-24 22:41:32 +00:00
|
|
|
NS, // not linted
|
2020-12-19 13:50:45 +00:00
|
|
|
CWR,
|
|
|
|
ECE,
|
|
|
|
URG,
|
|
|
|
ACK,
|
|
|
|
PSH,
|
|
|
|
RST,
|
|
|
|
SYN,
|
|
|
|
FIN,
|
|
|
|
}
|
|
|
|
|
2021-03-01 17:53:33 +00:00
|
|
|
// linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
|
|
|
|
// `GccLlvmSomething`
|
|
|
|
struct GCCLLVMSomething;
|
2020-12-19 13:50:45 +00:00
|
|
|
|
2021-02-26 20:22:30 +00:00
|
|
|
// public items must not be linted
|
|
|
|
pub struct NOWARNINGHERE;
|
|
|
|
pub struct ALSONoWarningHERE;
|
|
|
|
|
2020-12-19 13:50:45 +00:00
|
|
|
fn main() {}
|