1 error[E0720]: cannot resolve opaque type
2 --> $DIR/infinite-impl-trait-issue-38064.rs:8:13
4 LL | fn foo() -> impl Quux {
5 | ^^^^^^^^^ recursive opaque type
8 | ---------- returning here with type `Foo<impl Quux>`
10 LL | fn bar() -> impl Quux {
11 | --------- returning this opaque type `Foo<impl Quux>`
13 error[E0720]: cannot resolve opaque type
14 --> $DIR/infinite-impl-trait-issue-38064.rs:14:13
16 LL | fn foo() -> impl Quux {
17 | --------- returning this opaque type `Bar<impl Quux>`
19 LL | fn bar() -> impl Quux {
20 | ^^^^^^^^^ recursive opaque type
23 | ---------- returning here with type `Bar<impl Quux>`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0720`.