]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/upper_case_acronyms.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / upper_case_acronyms.rs
index 735909887acb189ac97b01a63708ae738989a2b1..48bb9e54b122ba68fa42ec3289fd6db03aa1b628 100644 (file)
@@ -20,4 +20,22 @@ enum Flags {
 // `GccLlvmSomething`
 struct GCCLLVMSomething;
 
+// public items must not be linted
+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() {}