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
|
2023-06-15 04:41:14 -05:00
|
|
|
--> $DIR/issue-70877.rs:28:19
|
2022-02-01 11:28:46 -06:00
|
|
|
|
|
2023-06-15 04:41:14 -05:00
|
|
|
LL | fn oof(_: Foo) -> impl std::fmt::Debug {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-02-14 10:10:22 -06:00
|
|
|
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
|
|
|
|