rust/src/test/ui/impl-trait/infinite-impl-trait-issue-38064.stderr

20 lines
729 B
Plaintext
Raw Normal View History

error[E0720]: opaque type expands to a recursive type
--> $DIR/infinite-impl-trait-issue-38064.rs:8:13
2018-08-08 07:28:26 -05:00
|
LL | fn foo() -> impl Quux { //~ opaque type expands to a recursive type
| ^^^^^^^^^ expands to self-referential type
|
= note: expanded type is `foo::Foo<bar::Bar<impl Quux>>`
error[E0720]: opaque type expands to a recursive type
--> $DIR/infinite-impl-trait-issue-38064.rs:14:13
|
LL | fn bar() -> impl Quux { //~ opaque type expands to a recursive type
| ^^^^^^^^^ expands to self-referential type
|
= note: expanded type is `bar::Bar<foo::Foo<impl Quux>>`
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0720`.