]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/two_tait_defining_each_other2.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / two_tait_defining_each_other2.stderr
CommitLineData
5e7ed085
FG
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