2022-02-14 10:10:22 -06:00
|
|
|
error: opaque type's hidden type cannot be another opaque type from the same scope
|
2022-02-17 07:28:06 -06:00
|
|
|
--> $DIR/issue-70877.rs:31:12
|
2022-02-14 10:10:22 -06:00
|
|
|
|
|
2022-02-17 07:28:06 -06:00
|
|
|
LL | return func(&"oof");
|
|
|
|
| ^^^^^^^^^^^^ one of the two opaque types used here has to be outside its defining scope
|
2022-02-14 10:10:22 -06:00
|
|
|
|
|
|
|
|
note: opaque type whose hidden type is being assigned
|
|
|
|
--> $DIR/issue-70877.rs:28:13
|
2022-02-01 11:28:46 -06:00
|
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
LL | fn oof() -> impl std::fmt::Debug {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: opaque type being used as hidden type
|
|
|
|
--> $DIR/issue-70877.rs:4:15
|
|
|
|
|
|
|
|
|
LL | type FooRet = impl std::fmt::Debug;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-02-01 11:28:46 -06:00
|
|
|
|
2022-05-27 14:31:10 -05:00
|
|
|
error: aborting due to previous error
|
2022-02-01 11:28:46 -06:00
|
|
|
|