summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-camel-case-variant.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/lint-non-camel-case-variant.rs')
-rw-r--r--src/test/ui/lint/lint-non-camel-case-variant.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-non-camel-case-variant.rs b/src/test/ui/lint/lint-non-camel-case-variant.rs
new file mode 100644
index 000000000..2b1a52f25
--- /dev/null
+++ b/src/test/ui/lint/lint-non-camel-case-variant.rs
@@ -0,0 +1,10 @@
+// check-pass
+
+#![deny(non_camel_case_types)]
+
+pub enum Foo {
+ #[allow(non_camel_case_types)]
+ bar
+}
+
+fn main() {}