summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22638.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-22638.stderr')
-rw-r--r--tests/ui/issues/issue-22638.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-22638.stderr b/tests/ui/issues/issue-22638.stderr
new file mode 100644
index 000000000..1caa4221f
--- /dev/null
+++ b/tests/ui/issues/issue-22638.stderr
@@ -0,0 +1,14 @@
+error: reached the recursion limit while instantiating `A::matches::$CLOSURE`
+ --> $DIR/issue-22638.rs:56:9
+ |
+LL | a.matches(f)
+ | ^^^^^^^^^^^^
+ |
+note: `A::matches` defined here
+ --> $DIR/issue-22638.rs:15:5
+ |
+LL | pub fn matches<F: Fn()>(&self, f: &F) {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to previous error
+