summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/style.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/associated-inherent-types/style.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/style.rs b/tests/ui/associated-inherent-types/style.rs
new file mode 100644
index 000000000..8775bd19e
--- /dev/null
+++ b/tests/ui/associated-inherent-types/style.rs
@@ -0,0 +1,12 @@
+#![feature(inherent_associated_types)]
+#![allow(incomplete_features, dead_code)]
+#![deny(non_camel_case_types)]
+
+struct S;
+
+impl S {
+ type typ = ();
+ //~^ ERROR associated type `typ` should have an upper camel case name
+}
+
+fn main() {}