]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.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`.