]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[rust.git] / src / test / ui / impl-trait / issues / infinite-impl-trait-issue-38064.stderr
1 error[E0720]: cannot resolve opaque type
2   --> $DIR/infinite-impl-trait-issue-38064.rs:8:13
3    |
4 LL | fn foo() -> impl Quux {
5    |             ^^^^^^^^^ recursive opaque type
6 ...
7 LL |     Foo(bar())
8    |     ---------- returning here with type `Foo<impl Quux>`
9 ...
10 LL | fn bar() -> impl Quux {
11    |             --------- returning this opaque type `Foo<impl Quux>`
12
13 error[E0720]: cannot resolve opaque type
14   --> $DIR/infinite-impl-trait-issue-38064.rs:14:13
15    |
16 LL | fn foo() -> impl Quux {
17    |             --------- returning this opaque type `Bar<impl Quux>`
18 ...
19 LL | fn bar() -> impl Quux {
20    |             ^^^^^^^^^ recursive opaque type
21 ...
22 LL |     Bar(foo())
23    |     ---------- returning here with type `Bar<impl Quux>`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0720`.