summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/bugs/inference-fail.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-inherent-types/bugs/inference-fail.rs')
-rw-r--r--tests/ui/associated-inherent-types/bugs/inference-fail.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/bugs/inference-fail.rs b/tests/ui/associated-inherent-types/bugs/inference-fail.rs
new file mode 100644
index 000000000..a920b412b
--- /dev/null
+++ b/tests/ui/associated-inherent-types/bugs/inference-fail.rs
@@ -0,0 +1,15 @@
+// known-bug: unknown
+
+#![feature(inherent_associated_types)]
+#![allow(incomplete_features)]
+
+struct S<T>(T);
+
+impl S<()> {
+ type P = i128;
+}
+
+fn main() {
+ // We fail to infer `_ == ()` here.
+ let _: S<_>::P;
+}