fork/rust

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

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

master
843 B27 linesraw
1error: unconstrained opaque type
2  --> $DIR/two_tait_defining_each_other2.rs:3:10
3   |
4LL | type A = impl Foo;
5   |          ^^^^^^^^
6   |
7   = note: `A` must be used in combination with a concrete type within the same module
8
9error: opaque type's hidden type cannot be another opaque type from the same scope
10  --> $DIR/two_tait_defining_each_other2.rs:9:5
11   |
12LL |     x // B's hidden type is A (opaquely)
13   |     ^ one of the two opaque types used here has to be outside its defining scope
14   |
15note: opaque type whose hidden type is being assigned
16  --> $DIR/two_tait_defining_each_other2.rs:4:10
17   |
18LL | type B = impl Foo;
19   |          ^^^^^^^^
20note: opaque type being used as hidden type
21  --> $DIR/two_tait_defining_each_other2.rs:3:10
22   |
23LL | type A = impl Foo;
24   |          ^^^^^^^^
25
26error: aborting due to 2 previous errors
27