summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-snake-case-modules.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/lint/lint-non-snake-case-modules.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-non-snake-case-modules.rs b/src/test/ui/lint/lint-non-snake-case-modules.rs
new file mode 100644
index 000000000..73f123321
--- /dev/null
+++ b/src/test/ui/lint/lint-non-snake-case-modules.rs
@@ -0,0 +1,10 @@
+#![deny(non_snake_case)]
+#![allow(dead_code)]
+
+mod FooBar { //~ ERROR module `FooBar` should have a snake case name
+ pub struct S;
+}
+
+fn f(_: FooBar::S) { }
+
+fn main() { }