]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/upper_case_acronyms.rs
Auto merge of #87686 - matthiaskrgr:clippy_august_21_perf, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / upper_case_acronyms.rs
index 8c09c6f5b23d273692a9c5d10bd16fb419e1f60c..48bb9e54b122ba68fa42ec3289fd6db03aa1b628 100644 (file)
@@ -24,4 +24,18 @@ enum Flags {
 pub struct NOWARNINGHERE;
 pub struct ALSONoWarningHERE;
 
+// enum variants should not be linted if the num is pub
+pub enum ParseError<T> {
+    YDB(u8),
+    Utf8(std::string::FromUtf8Error),
+    Parse(T, String),
+}
+
+// private, do lint here
+enum ParseErrorPrivate<T> {
+    WASD(u8),
+    Utf8(std::string::FromUtf8Error),
+    Parse(T, String),
+}
+
 fn main() {}