summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-no-body.rs (renamed from src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-no-body.stderr (renamed from src/test/ui/associated-inherent-types/assoc-inherent-no-body.stderr)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-private.rs (renamed from src/test/ui/associated-inherent-types/assoc-inherent-private.rs)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-private.stderr (renamed from src/test/ui/associated-inherent-types/assoc-inherent-private.stderr)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-unstable.rs (renamed from src/test/ui/associated-inherent-types/assoc-inherent-unstable.rs)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr (renamed from src/test/ui/associated-inherent-types/assoc-inherent-unstable.stderr)0
-rw-r--r--tests/ui/associated-inherent-types/assoc-inherent-use.rs (renamed from src/test/ui/associated-inherent-types/assoc-inherent-use.rs)0
-rw-r--r--tests/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs (renamed from src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs)0
-rw-r--r--tests/ui/associated-inherent-types/issue-104260.rs (renamed from src/test/ui/associated-inherent-types/issue-104260.rs)0
-rw-r--r--tests/ui/associated-inherent-types/normalize-projection-0.rs (renamed from src/test/ui/associated-inherent-types/normalize-projection-0.rs)0
-rw-r--r--tests/ui/associated-inherent-types/normalize-projection-1.rs (renamed from src/test/ui/associated-inherent-types/normalize-projection-1.rs)0
-rw-r--r--tests/ui/associated-inherent-types/struct-generics.rs (renamed from src/test/ui/associated-inherent-types/struct-generics.rs)0
-rw-r--r--tests/ui/associated-inherent-types/style.rs12
-rw-r--r--tests/ui/associated-inherent-types/style.stderr14
14 files changed, 26 insertions, 0 deletions
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs b/tests/ui/associated-inherent-types/assoc-inherent-no-body.rs
index 71f65b92e..71f65b92e 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs
+++ b/tests/ui/associated-inherent-types/assoc-inherent-no-body.rs
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.stderr b/tests/ui/associated-inherent-types/assoc-inherent-no-body.stderr
index 387a5658d..387a5658d 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.stderr
+++ b/tests/ui/associated-inherent-types/assoc-inherent-no-body.stderr
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-private.rs b/tests/ui/associated-inherent-types/assoc-inherent-private.rs
index 531581954..531581954 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-private.rs
+++ b/tests/ui/associated-inherent-types/assoc-inherent-private.rs
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-private.stderr b/tests/ui/associated-inherent-types/assoc-inherent-private.stderr
index d67b45dae..d67b45dae 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-private.stderr
+++ b/tests/ui/associated-inherent-types/assoc-inherent-private.stderr
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.rs b/tests/ui/associated-inherent-types/assoc-inherent-unstable.rs
index 34b4e47bf..34b4e47bf 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.rs
+++ b/tests/ui/associated-inherent-types/assoc-inherent-unstable.rs
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.stderr b/tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr
index c0be8bfd7..c0be8bfd7 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.stderr
+++ b/tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr
diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-use.rs b/tests/ui/associated-inherent-types/assoc-inherent-use.rs
index 7ae425e2a..7ae425e2a 100644
--- a/src/test/ui/associated-inherent-types/assoc-inherent-use.rs
+++ b/tests/ui/associated-inherent-types/assoc-inherent-use.rs
diff --git a/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs b/tests/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
index 6b71ffc97..6b71ffc97 100644
--- a/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
+++ b/tests/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs
diff --git a/src/test/ui/associated-inherent-types/issue-104260.rs b/tests/ui/associated-inherent-types/issue-104260.rs
index a73cd1775..a73cd1775 100644
--- a/src/test/ui/associated-inherent-types/issue-104260.rs
+++ b/tests/ui/associated-inherent-types/issue-104260.rs
diff --git a/src/test/ui/associated-inherent-types/normalize-projection-0.rs b/tests/ui/associated-inherent-types/normalize-projection-0.rs
index 50763ecdd..50763ecdd 100644
--- a/src/test/ui/associated-inherent-types/normalize-projection-0.rs
+++ b/tests/ui/associated-inherent-types/normalize-projection-0.rs
diff --git a/src/test/ui/associated-inherent-types/normalize-projection-1.rs b/tests/ui/associated-inherent-types/normalize-projection-1.rs
index 2f7b2551a..2f7b2551a 100644
--- a/src/test/ui/associated-inherent-types/normalize-projection-1.rs
+++ b/tests/ui/associated-inherent-types/normalize-projection-1.rs
diff --git a/src/test/ui/associated-inherent-types/struct-generics.rs b/tests/ui/associated-inherent-types/struct-generics.rs
index 8952b3791..8952b3791 100644
--- a/src/test/ui/associated-inherent-types/struct-generics.rs
+++ b/tests/ui/associated-inherent-types/struct-generics.rs
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() {}
diff --git a/tests/ui/associated-inherent-types/style.stderr b/tests/ui/associated-inherent-types/style.stderr
new file mode 100644
index 000000000..f83061f8c
--- /dev/null
+++ b/tests/ui/associated-inherent-types/style.stderr
@@ -0,0 +1,14 @@
+error: associated type `typ` should have an upper camel case name
+ --> $DIR/style.rs:8:10
+ |
+LL | type typ = ();
+ | ^^^ help: convert the identifier to upper camel case: `Typ`
+ |
+note: the lint level is defined here
+ --> $DIR/style.rs:3:9
+ |
+LL | #![deny(non_camel_case_types)]
+ | ^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+