fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
641 B19 linesraw
1error: opaque type's hidden type cannot be another opaque type from the same scope
2  --> $DIR/issue-70877.rs:31:12
3   |
4LL |     return func(&"oof");
5   |            ^^^^^^^^^^^^ one of the two opaque types used here has to be outside its defining scope
6   |
7note: opaque type whose hidden type is being assigned
8  --> $DIR/issue-70877.rs:28:19
9   |
10LL | fn oof(_: Foo) -> impl std::fmt::Debug {
11   |                   ^^^^^^^^^^^^^^^^^^^^
12note: opaque type being used as hidden type
13  --> $DIR/issue-70877.rs:4:15
14   |
15LL | type FooRet = impl std::fmt::Debug;
16   |               ^^^^^^^^^^^^^^^^^^^^
17
18error: aborting due to previous error
19