summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/upper_case_acronyms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/upper_case_acronyms.rs')
-rw-r--r--src/tools/clippy/tests/ui/upper_case_acronyms.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/upper_case_acronyms.rs b/src/tools/clippy/tests/ui/upper_case_acronyms.rs
index 9b7c2f28e..6a20aee62 100644
--- a/src/tools/clippy/tests/ui/upper_case_acronyms.rs
+++ b/src/tools/clippy/tests/ui/upper_case_acronyms.rs
@@ -7,13 +7,22 @@ struct CString; // not linted
enum Flags {
NS, // not linted
CWR,
+ //~^ ERROR: name `CWR` contains a capitalized acronym
+ //~| NOTE: `-D clippy::upper-case-acronyms` implied by `-D warnings`
ECE,
+ //~^ ERROR: name `ECE` contains a capitalized acronym
URG,
+ //~^ ERROR: name `URG` contains a capitalized acronym
ACK,
+ //~^ ERROR: name `ACK` contains a capitalized acronym
PSH,
+ //~^ ERROR: name `PSH` contains a capitalized acronym
RST,
+ //~^ ERROR: name `RST` contains a capitalized acronym
SYN,
+ //~^ ERROR: name `SYN` contains a capitalized acronym
FIN,
+ //~^ ERROR: name `FIN` contains a capitalized acronym
}
// linted with cfg option, beware that lint suggests `GccllvmSomething` instead of
@@ -34,15 +43,18 @@ pub enum ParseError<T> {
// private, do lint here
enum ParseErrorPrivate<T> {
WASD(u8),
+ //~^ ERROR: name `WASD` contains a capitalized acronym
Utf8(std::string::FromUtf8Error),
Parse(T, String),
}
// do lint here
struct JSON;
+//~^ ERROR: name `JSON` contains a capitalized acronym
// do lint here
enum YAML {
+ //~^ ERROR: name `YAML` contains a capitalized acronym
Num(u32),
Str(String),
}