summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-81862.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/issue-81862.rs')
-rw-r--r--tests/ui/generic-associated-types/issue-81862.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-81862.rs b/tests/ui/generic-associated-types/issue-81862.rs
new file mode 100644
index 000000000..bde828b77
--- /dev/null
+++ b/tests/ui/generic-associated-types/issue-81862.rs
@@ -0,0 +1,10 @@
+trait StreamingIterator {
+ type Item<'a>;
+ fn next(&mut self) -> Option<Self::Item>;
+ //~^ ERROR missing generics for associated type
+}
+
+fn main() {}
+
+// call stack from back to front:
+// create_substs_for_assoc_ty -> qpath_to_ty -> res_to_ty -> ast_ty_to_ty -> ty_of_fn