summaryrefslogtreecommitdiffstats
path: root/tests/ui/wf/issue-110157.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/wf/issue-110157.rs')
-rw-r--r--tests/ui/wf/issue-110157.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/wf/issue-110157.rs b/tests/ui/wf/issue-110157.rs
new file mode 100644
index 000000000..43a8ce72f
--- /dev/null
+++ b/tests/ui/wf/issue-110157.rs
@@ -0,0 +1,12 @@
+struct NeedsDropTypes<'tcx, F>(std::marker::PhantomData<&'tcx F>);
+
+impl<'tcx, F, I> Iterator for NeedsDropTypes<'tcx, F>
+//~^ ERROR type annotations needed
+where
+ F: Fn(&Missing) -> Result<I, ()>,
+ //~^ ERROR cannot find type `Missing` in this scope
+ I: Iterator<Item = Missing>,
+ //~^ ERROR cannot find type `Missing` in this scope
+{}
+
+fn main() {}