summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/issue-109299-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-inherent-types/issue-109299-1.rs')
-rw-r--r--tests/ui/associated-inherent-types/issue-109299-1.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/issue-109299-1.rs b/tests/ui/associated-inherent-types/issue-109299-1.rs
new file mode 100644
index 000000000..6f9527311
--- /dev/null
+++ b/tests/ui/associated-inherent-types/issue-109299-1.rs
@@ -0,0 +1,12 @@
+#![feature(inherent_associated_types, non_lifetime_binders, type_alias_impl_trait)]
+#![allow(incomplete_features)]
+
+struct Lexer<T>(T);
+
+impl Lexer<i32> {
+ type Cursor = ();
+}
+
+type X = impl for<T> Fn() -> Lexer<T>::Cursor; //~ ERROR associated type `Cursor` not found for `Lexer<T>` in the current scope
+
+fn main() {}