summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr')
-rw-r--r--tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr b/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr
new file mode 100644
index 000000000..16a1262ec
--- /dev/null
+++ b/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr
@@ -0,0 +1,27 @@
+error[E0720]: cannot resolve opaque type
+ --> $DIR/infinite-impl-trait-issue-38064.rs:8:13
+ |
+LL | fn foo() -> impl Quux {
+ | ^^^^^^^^^ recursive opaque type
+...
+LL | Foo(bar())
+ | ---------- returning here with type `Foo<impl Quux>`
+...
+LL | fn bar() -> impl Quux {
+ | --------- returning this opaque type `Foo<impl Quux>`
+
+error[E0720]: cannot resolve opaque type
+ --> $DIR/infinite-impl-trait-issue-38064.rs:14:13
+ |
+LL | fn foo() -> impl Quux {
+ | --------- returning this opaque type `Bar<impl Quux>`
+...
+LL | fn bar() -> impl Quux {
+ | ^^^^^^^^^ recursive opaque type
+...
+LL | Bar(foo())
+ | ---------- returning here with type `Bar<impl Quux>`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0720`.