2018-11-18 12:33:44 -06:00
|
|
|
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
|
|
|
|
|
2018-11-18 12:33:44 -06: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
|
|
|
|
2018-11-18 12:33:44 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-11-18 12:33:44 -06:00
|
|
|
For more information about this error, try `rustc --explain E0720`.
|